Setting up Git
When you register for this course, we will create a Git repository for you at https://git.uwaterloo.ca. This will be the repository that you use for all of your assignments this term. These instructions help you setup Git to use for your assignments.
For those that are new to Git, there is a Git walkthrough explaining the basic workflow that you will use in this course.
You will receive an an invitation email at the start of the term that you must accept in order to be able to access the repo.
Note: If you have a “friendly” email set (e.g., email@example.com), you may need to login using that rather than your “actual” UWaterloo userid (e.g., firstname.lastname@example.org). If you have trouble, email Caroline Kierstead and she can re-send the invitation manually to your “actual” userid.
You will need to get a local working copy of your repository.
- Log into
git.uwaterloo.caand get the URL to your repository (
Clone with HTTPSand copy it).
git clone <url to your repository> cs349. This will produce a directory named
cs349with empty subdirectories
- Your assignment should be placed in the appropriate subdirectory.
- Make sure that your required files are in the appropriate subdirectory, in the repository that you cloned above.
git addall of your files.
git committo commit them to the repository.
git pushto send changes to the server.
You can do one of two things:
git cloneto a new, different location and test to make sure this copy works correctly, or
- Login to
git.uwaterloo.caand inspect your repository to see that everything was submitted correctly.