MIKESTOWE.COM

you are here

Basic SVN Commands

Here are some basic, but important SVN commands to know:

Checkout a Repository

1
svn checkout http://...

Update local repository

1
svn update

Commit all changes in local directory

1
svn commit -m "message"

Commit specific changes

1
svn commit -m "message" file1 file2 file3

Revert or Undo Your Changes

1
svn revert file

List the last 5 revisions

1
svn log --limit=5

List the last 5 revisions for a specific file

1
svn log --limit=5 file

Show differences between repositories

1
svn diff

Show differences for a specific file

1
svn diff file

Show differences between revisions

1
svn diff -r revision1:revision2

Show differences between revisions for specific files

1
svn diff -r revision1:revision2 file1 file2 file3

Show differences compared to last revision

1
svn diff -c revision

Port Differences to VIM Editor

1
svn diff | vim -

Share this Page:
Facebook Twitter Linkedin Reddit Tumblr Email

Leave a Reply

Your email address will not be published. Required fields are marked *