Skip to content

Instantly share code, notes, and snippets.

@jorwan
Last active March 20, 2019 14:31
Show Gist options
  • Save jorwan/91a34edb473e0b91953e48dce62e3e13 to your computer and use it in GitHub Desktop.
Save jorwan/91a34edb473e0b91953e48dce62e3e13 to your computer and use it in GitHub Desktop.
SVN Command Line

Show file changes in a particular revision

Show all modified files (-v) Their changes (--diff) In a particular revision (-r)

svn log -v --diff -r revision-number[:until-revision-number]  http://x.x.x.x/path/to/svn/project/branch-name/ |more

List branches

List all branches with authors and date information

svn list -v http://x.x.x.x/path/to/svn/project |sort

Rollback/Restore a file to a particular revision

Replace current file with the file in another revision To get it ready to be committed again

svn cat -r 1138 http://x.x.x.x/path/to/svn/project/branch/file > file

Show log changes by date

svn log --diff -v -r {2019-02-14} http://x.x.x.x/path/to/svn/project |more

Revert all uncommitted changes

Do not forget the dot (.) at the end

svn revert -R .

Merge by revision

svn merge -r revision-number[:until-revision-number] http://x.x.x.x/path/to/svn/project

Database locked error fix

SVN Cleanup

svn cleanup

Resolve conflicts

svn resolve

Mark as resolved a conflict

Remember the differences between resolve and resolved

svn resolved <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment