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., jane.doe@uwaterloo.ca), you may need to login using that rather than your “actual” UWaterloo userid (e.g., j349doe@uwaterloo.ca). 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.ca
and get the URL to your repository (Clone
dropdown, thenClone with HTTPS
and copy it). git clone <url to your repository> cs349
. This will produce a directory namedcs349
with empty subdirectoriesA1
thoughA4
.- 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 add
all of your files.git commit
to commit them to the repository.git push
to send changes to the server.
You can do one of two things:
git clone
to a new, different location and test to make sure this copy works correctly, or- Login to
git.uwaterloo.ca
and inspect your repository to see that everything was submitted correctly.