Our Repositories

Starting a new homework with Gitolite

To start a new homework, the first thing you need to do is clone the empty repository where the homework should live in our repository structure. Below [server] is our Git server, [hw directory] is the location on your development machine where you keep your homeworks, [andrew id] is your Andrew user name, and [num] is a two digit number of the homework (e.g. 01, 02, 03, ...). Then to start a homework, you clone:

$ cd [hw directory]
$ git clone git@[server]:ipad_class_2012/hw/[andrew id]/[andrew id]_hw[num]

For example if your TA were starting homework 01, he would type:

 $ cd Homeworks
 $ git clone git@[server]:ipad_class_2012/hw/jcransh/jcransh_hw01

This will clone an empty repository for your homework assignment, creating the directory [hw directory]/[andrew id]_hw[num]. Your Xcode Project for the homework must be saved in this directory. Then when you're done and ready to commit, you'll push your project back to the remote [server]. Again see our guide to Git if you're new to Git.