SVN quick reference

The following is modified from an email sent by Prof. Smith on the use of the command line svn program under linux here at CS -Greg

To checkout (co) repository for first time

  1. cd on your local machine to where you want your project working directory to be created
  2. enter the command: svn co https://OUR_SVN_SERVER/svn/project myproj 1)

To check the status of a *particular* file

svn status <filename>

To show *which* files have been updated

svn status -u

To compare working version with repository's

svn diff <filename>

To see a file's activity log

svn log [--verbose] <filename>

To update your own working copy

svn update

To commit changes

svn commit -m "description text"

To add a file or directory

Notes on svn add:

  • by default, svn adds dirs recursively
  • this command must be followed by a commit!

svn add <file-or-dir-name>

1) I am leaving out the name of our svn server to keep it from being gleaned and then attacked. If you forget what it is called please write me or your professor. Sorry for the hassle - Greg
sysnews/svn_use.txt · Last modified: 2008/04/25 11:02 by priestdo
VCCS Top Events Extended Site Search Vassar Science Web Vassar Home Driven by DokuWiki Valid XHTML 1.0