Reply to comment
SVN Cheatsheet
We use Subversion (SVN) at the Creative Department to keep track of all changes made to client files and efficiently log a developer's intent when making a change. Because some on our team are not specifically predisposed to command line syntax and others actually fear it or harbor great disdain for anything lacking buttons, I put together this list of common SVN commands to help alleviate the pain.
Checkout new project
svn checkout http://svn.tcmacdonald.com/somesite.com/trunk/
Checkout new project to current directory
svn checkout http://svn.tcmacdonald.com/somesite.com/trunk/ .
Update project files to latest revision
svn update
Add new files to version control
svn add [file1 file2 ...]
Commit changes with a message
svn commit [file1 file2 ...] -m "commit message"
See the what's changed in a file since your last update
svn diff filename + line added - line removed
Check file status
svn status A - Marked for addition M - Modified D - Marked for deletion ? - File unknown ! - File missing G - File merged U - File updated L - File locked
Fix locked files...
svn cleanup
Hide certain unversioned files from SVN
svn propedit svn:ignore .
See previous log messages for a specific file or diretory
svn log -v filename
See differences in a specific file between revisions
svn diff -rHEAD:PREV filename
Rollback file or directory to a specific revision
svn merge -r HEAD:99 filename svn commit -m "Rollback to revision 99" Committed revision 101.
Show files in remote repository
svn list http://svn.tcmacdonald.com
Create directory in remote repository
svn mkdir http://svn.tcmacdonald.com/newDirectory -m "Creating new directory"
Get information on remote repository
svn info http://svn.tcmacdonald.com
Lots more on Subversion at http://svnbook.red-bean.com/




