SVN basics

Subversion basics

Posted on October 21, 2013

Here’s a few basic SVN commands to get you started:

Check out your site

svn co [path-to-repo]

Check in changes

svn ci -m “[commit-message]”

Delete a file

svn del [path-to-file]

Add a file

svn add [path-to-file]

Check the status of files

svn st

SVN Merge

svn merge 41:40 [path to full site or file]

Revert a file to previous revision

svn revert [path-to-file]

Add all new svn files

svn status | grep ^? | awk ‘{print $2}’ | xargs svn add

Delete all missing svn files

svn status | grep ^! | awk ‘{print $2}’ | xargs svn –force delete