How To Submit Assignments¶
All assigned work is due on GitHub by 5 PM on Friday the week it is assigned.
First-time Setup¶
If you have already done the first-time setup, please skip ahead to Submitting Assignments as Pull Requests.
To submit assignments you will need:
Login to GitHub.com
Fork the cjtu/spirl-f21-assignments repo.
After forking you should see:
Start VS Code and open a new window with
Ctrl+Shift+N
. Open the Source Control Tab (or pressCtrl+Shift+G
).
Click “Clone Repository”.
Click “Clone from GitHub” or press
Enter
.
Allow VS Code to connect to GitHub (you will be taken to a browser and may need to login again). For more info see Working with GitHub in VS Code.
Clone the
<your-username>/spirl-f21-assignments
repository.
Install the GitHub Pull Requests and Issues Extension from the Extensions Tab
Submitting Assignments as Pull Requests¶
When you are ready to submit your assignment, follow the steps below to submit your work to GitHub.
Add your assignment to the weekly folder.
In the Source Control tab, write a commit message and then click the checkmark (commit) button.
Click the 3 dots and choose “Push” to update your changes to GitHub.
You can check on GitHub if you pushed successfully by refreshing your forked repository page. You should see your newest changes reflected in the files on GitHub.
Back in the Source Control tab of VS Code, click the Create Pull Request button.
Make sure to select your username as the branch in the 4th dropdown (into section).
Name your pull request (e.g. “Submit Assignment 0”) and leave a description if you’d like. Click “Create”.
To check if your assignment was successfully submitted, you can check the pull requests on github at the main
cjtu/spirl-f21-assignments
repo here.
You’re done! Once your pull request appears on GitHub, your assignment is officially submitted. Nice job!
(optional) To fix your submission while the pull request is open simply make changes, commit and push. The pull request will be automatically updated. If the pull request is already
Merged
orClosed
, you will need to commit and push changes and open a new pull request.
Christian or Shih-Yun will leave feedback on your pull request before the next class.