Some instructions for ssh, svn, and git
svn update -r [rev] path/to/repo
svn cat -r [rev] path/to/repo | more
svn diff -c [rev] path/to/repo
svn log -v -r [rev]
After sending the administrator your public SSH key server administrator and adding your key using ssh-add (see above) you can clone a git repository using
git clone gituser@host.name.univ.edu:repository_nameNotice that the "username" in this command is "gituser", not anything having to do with your local username or your real name. (Most git servers do not create a separate account for each git repository user.) Do not send your private key to the server administrator.
In order to avoid having to explicitly use ssh-add, you can create an entry in your SSH config file for the git server containing the lines
Hostname host.name.univ.edu User gituser IdentityFile ~/.ssh/my_rsawhere ~/.ssh/my_rsa is the filename for your private key which you are using for the git repository. Note that this need not be the same key pair which you use for ssh.
git checkout <rev>
git checkout -t
origin/<branch>
git branch -a
git fetch
git branch <branch_name>
git branch -d <branch_name>
git show <rev>:file
git checkout cab3c3 -- file1/to/restore
file2/to/restore
git diff rev1..rev2 -- filename
Some of this I have based on Christian Ott's blog post.
Back to Andrew W. Steiner at the University of Tennessee.