Prime31 Web Design

Archive for the ‘svn’ Category

SVN Command Line Cheat Sheet

Monday, March 24th, 2008
Here is a short list of handy SVN commands. This list is in no way exhaustive but it does contain the most used commends (by me at least).

#-----------------
# start svn server
#-----------------
sudo -u www /sw/bin/svnserve -d -r /Users/al/svnrepo

#-------------------
# checkout a project
#-------------------
svn checkout svn://localhost/project1

#---------------
# basic commands
#---------------
svn up             # update
svn add [file]     # add
svn ci -m "msg"    # commit
svn log

#--------------------------
# file/directory management
#--------------------------
svn copy foo bar
svn mkdir foo
svn mv foo bar
svn rm foo

#------
# other
#------
svn status
svn diff 
svn revert
svn info
svn list URL
svn list svn://localhost/