Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programming course assignments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
Programming course assignments
Commits
843edaef
Commit
843edaef
authored
10 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions for doing the assignments
parent
59406270
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTRUCTIONS.md
+98
-0
98 additions, 0 deletions
INSTRUCTIONS.md
README.md
+3
-1
3 additions, 1 deletion
README.md
with
101 additions
and
1 deletion
INSTRUCTIONS.md
0 → 100644
+
98
−
0
View file @
843edaef
Instructions for the assignments
================================
Some assignments need additional data or come with some example startup code
for you to use. These are stored in a Git repository.
Start by configuring Git (only need to do this once per computer):
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Clone the assignments repository
--------------------------------
Use your webbrowser to go to
https://git.lumc.nl/humgen/programming-course-assignments
Login using your LUMC account or the account you were emailed (notify a
teacher if you cannot login). Click the
*Fork repository*
button on the
right.
The resulting page is your fork of the repository. Bookmark this page in your
browser.
On your fork, click the
*HTTPS*
button on the top and copy the resulting URL,
e.g.,
`https://git.lumc.nl/johndoe/programming-course-assignments.git`
.
Using this URL, clone the repository on your local computer:
git clone https://git.lumc.nl/johndoe/programming-course-assignments.git
You now have a copy of the material on your computer. Change directory to it:
cd programming-course-assignments
Do an assignment
----------------
You have to figure this out yourself.
Commit and publish your solution
--------------------------------
For any files you created as part of your solution, run
`git add`
. For
example:
git add solution_1.py
Commit your changes to Git:
git commit -am 'Solution for assignment 1'
Push your changes to the server:
git push
You can repeat this section later when you did another assignment.
Share your solution
-------------------
Go to your project page (the one you bookmarked) where you should now see what
you pushed earlier.
You can of course share your solution simply by sharing a link to your project
page. However, there is a nice feature in GitLab called
*merge requests*
which
you can use to directly submit you solution to the teachers.
On your project page, click the green squared button on the right (with three
horizontal white stripes) an choose
*New merge request*
. Make sure the
*
Source
branch
* is set to *
master
* on your fork and the *
Target branch
*
is set to
*master*
on the original (
*humgen*
).
Click
*Compare branches*
. Enter an appropriate title and perhaps a description
before clicking
*Submit merge request*
. The resulting page can be used by you
and the teachers to discuss your solution.
Getting assignment updates
--------------------------
We might need to update the assignments repository after you forked it. In
that case, we will notify you, but this is how to get the update on your local
computer.
Register the original repository (only need to do this once):
git remote add humgen https://git.lumc.nl/humgen/programming-course-assignments.git
Get any updates:
git fetch humgen
git merge humgen/master
This diff is collapsed.
Click to expand it.
README.md
+
3
−
1
View file @
843edaef
...
...
@@ -6,5 +6,7 @@ This repository contains some assignment material for the second installment
of Human Genetics of the Leiden University Medical Center.
See the
[
Trac Wiki
](
https://humgenprojects.lumc.nl/trac/humgenprojects/wiki/ProgrammingCourse
)
[
course website
](
https://humgenprojects.lumc.nl/trac/humgenprojects/wiki/ProgrammingCourse
)
for more information.
Also see the
[
instructions on using this repository
](
INSTRUCTIONS.md
)
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment