Subversion Usage (subversion book)

 

Update all files in the current directory


Type "svn update"

 

See what has changed locally or on the server


Type "svn status -u"

 

Edit a file


No special requirements, edit away


Delete an entire project safely (ensures you have no locally modified files)


Type "svn status"  (check if there are any changes you care about)
If not, just delete the files however you like

 

Revert back to server copy (removes changes you have made locally)


Type "svn revert [file]"


Commit the changes you have made


Type "svn status" (not required, but shows you what will happen)
Type "svn commit [file]"  (requires write access to the repository)


See the history of a file


Type "svn log [file]"


Add a new file


Type "svn add file"
Type "svn commit [file]"    (completes the addition, requires write access to the repository)


Remove file from repository (remains in history)

Note: To get files off your system just delete them manually. The "svn delete" command removes files from the server


Type "svn delete file"
Type "svn commit [file]"    (completes the deletion, requires write access to the repository)


See the difference between a file on your machine and the server


Type "svn diff file"


See the difference between two revisions of a file


Type "svn diff -r N:M file"  (N is the old revision M is the new revision, browsing the source online is easier)


Get and old file revision


Type "svn update -r N file" (N is the old revision. Will update to the latest revision upon the next "svn update")


Display old file to stdout (instead of putting the file on your machine)


Type "svn cat -r N file" (N is the old revision)


Revert to an older version of a file (undoing commited changes)


Type "svn update -r N file" (N is the old revision)
Type "svn commit [file]"

 

top

RBDev Home Robot Battle Development · Copyright © 2004 Bradley Schick · All rights reserved.