Submitting assignments (Using SSH)


Once you are done working on the starter code, you need to push your changes back to the Github. This is a critical step because if you do not push your local changes to your master repository (the one that exists on Github), your changes will not get reflected. You are graded based on what is on the GitHub site, not your computer. 


Step 1 

Right-click on your project folder in the "Project Explorer" window. From the drop-down menu, select Team -> Commit.

Step 2 

The system requires that you enter a commit message. Commit messages are a good way to keep track of what is changed in this "commit". So, make them meaningful and short. For example, you can use "fixed ButtonPress() bugs", "added comments", "added the report", etc. This will give the reader (most of the time yourself!) a better idea of how you have modified your code from its previous version. For this tutorial, you can write "Hello GitHub!!"

Make sure the Author and Committer are populated with your GitHub login. If you see a different name, change it to the email you used for GitHub login with < and > enclosing the email. 

Also, make sure main.c (or generally all your changes) is in the Staged Changes pane. If not, drag it from Unstaged Changes and drop it in the Staged Changes.

Step 3 

Once you have typed in your commit message, click on "Commit and Push" to push all your changes to Github. A window opens at the end which you need to close. Be mindful that if you choose "Commit" instead of "Commit and Push" your changes will only appear on your local repository, not GitHub. This is not what you want. 


Step 4 

Although trivial, this is probably the most critical step you need to take: Go back to your repository on Github to see if the changes (and your commit messages) are there. In the below image see how in front of main.c, the message "Hello GitHub!!" has appeared. The other files still show "Initial commit" because we did not change any of them. Checking the site ensures everything is OK and your code is ready for grading. You should make it a habit of committing and pushing as often as you can. At a minimum, you have to commit and push at the end of each coding session. In this case, you do not have to keep a copy of your code on a flash or external hard drive. We will grade the last push to your repository that was done before the deadline (or before the end of the grace period, if you choose that).

Verifying your submission ->