CS169 Subversion Setup

Setup SSH2 public key

To gain access to the subversion group accounts, you need to create a ssh2 public/private key pair. This should be done automatically first time you login to your class account. To verify this has taken place, the public key should be '~/.ssh2/$USER.pub', where $USER is your class account login. If you don't have a public key setup, you can run 'ssh-keygen2 -b 1024 ~/.ssh2/$USER' to create a ssh2 key. Once you have done this, you should email the TA to have him setup access to your account

Setting up Group Account

Subversion for CS169 is setup through group accounts. To find your group number, look at the Group Page. Then, use 'svngroup cs169-gN' to access the SVN group on the instructional machines, where N is your group number.

Import a project

After you have setup the group account, then you can run svn import -m "initial import" svn+ssh://cs169-gN@torus.cs.berkeley.edu/home/cc/cs169/sp05/group/cs169-gN/svnroot to import files into your repository (remember you have to change N to your group number).

Access your repository

Once you have import files into your repository, you can use svn checkout svn+ssh://cs169-gN@torus.cs.berkeley.edu/home/cc/cs169/sp05/group/cs169-gN/svnroot to checkout your files (remember you have to change N to your group number). Then you can use 'svn diff', 'svn commit', and other svn commands.

For more information on Subversion, you can consult the Subversion Book.

Many thanks to the 162 TA, Karl Chen, for setting up subversion. You can also checkout 162 subversion info page here.


Paul Huang
Last modified: Tue Feb 15 15:31:25 PST 2005