SVN Cheat Sheet

Leave a comment Standard

Brackets [like_this] indicate that the value is optional. Merging and revisions and committing, conflicts and reverting assume that you’ve already checked out and are in a working repository.

Checkout a repository

svn co repo_url [folder_name]

Merge into a repository

svn merge repo_url

Check the status of a repository

svn status [file_name]

Check for uncommitted change differences

svn diff [file_name]

Resolve conflicts

svn resolve –accept type file_name

Commit changes

svn ci -m “your commit message goes here”

Revert a revision

svn merge -c -REV#

Revert a range of revisions

svn merge -r UPREV#:LOWREV#

Add all unversioned files

svn add `svn status .|grep “^?”|awk ‘{print $2}’`

Find all files with conflicts

svn status | grep -P ‘^(?=.{0,6}C)’

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s