We will be using git for source code control this semester.
We have setup a repository manager called gitolite.
In order to setup your git repository you need to send me and CS support your public ssh key. RSA preferred.
If you don't have one, use:
Send your .ssh/id_rsa.pub file to me (firstname.lastname@example.org and email@example.com).
The gitolite server will be www.cs.usfca.edu. More to follow on how to setup your initial local repo.
Once you have your keys setup, you can clone your repo from the CS gitolite server:
$ git clone firstname.lastname@example.org:<username>
$ git clone email@example.com:benson
After you have cloned, you can add files to the repo:
$ git commit -a -m "Initial CS 345 files."
Here are a few common git commands:
git clone - clone a repo from a remote server
git pull - pull updates from the remote repo
git push - push local updates to the remote repo
git add - add a file or directory to be tracked by git
git commit - commit changes
git branch - show branches
git checkout -b <branch-name> # create a new branch
git checkout <branch-name> # switch to a branch
git merge <branch-name> # merge updates from <branch-name> into current branch