Skip to content
Snippets Groups Projects
Commit 843edaef authored by Vermaat's avatar Vermaat
Browse files

Add instructions for doing the assignments

parent 59406270
No related branches found
No related tags found
No related merge requests found
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
......@@ -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).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment