- Click the assessment link.
- "Accept this assignment"
- Wait 30 seconds before you click the link to the repository that has been created
for you.
- Get the repository URL from the green <> Code menu.
Use the HTTPS option (the default) and copy the link.
- On your computer do git clone paste_the_URL_here.
- Change into the repository directory to do your work.
- Add your answer files to the staging area
git add MyFile.txt MyCode.py etc.
- Commit the files
git commit -m "SOME USEFUL MESSAGE"
- Commit whenever you want after making changes.
To avoid having to do a "git add" each time, use
git commit -a -m "SOME USEFUL MESSAGE"
- Push the repository to Github.
This first time you have to provide your Github login, and your access token as the
password.
git push -u origin master
master could also be main, depending on your version of Git.
- At stable points after some commits push again
(note you just "push")
git push
- You can view the commmited code in Github.