Svn Cheat Sheet

Explore key concepts, syntax, and usage examples for Svn — perfect for quick reference.

Resource
Online Related
Component
Checkout & Help
Checkout Working Copy
  • $ svn checkout "/path/to/repository"
    💡 Checkout working copy into current folder
  • $ svn checkout "/path/to/repository" "/path/to/folder"
    💡 Checkout working copy into target folder
SVN Help
  • $ svn help
  • $ svn help import
    💡 Show help for "import" command
Commit
Update
Diff / Revert / Merge
Differences Between Files
  • $ svn diff "/path/file"
  • $ svn diff "/path/file@2" "/path/file@7"
  • $ svn diff -r 2:7 "/path/folder"
Revert
  • $ svn revert "/path"
    💡 Revert changes to path
  • $ svn revert -R "/path"
    💡 Revert changes recursively
Merge Changes
  • $ svn merge -r2:7 "item" "/path"
    💡 Apply diff between revisions 2 and 7 of "item" to path
  • $ svn merge "url1" "url2" "/path"
    💡 Apply diff between "url1" and "url2" to path
Add / Delete
Add Files / Folders
  • $ svn add *
    💡 Add all items, recursively
  • $ svn add itemname
    💡 Add itemname (if folder, adds recursively)
  • $ svn add * --force
    💡 Force recursion into versioned directories
Deleteing Copying Moving
  • $ svn delete "/path"
    💡 Delete path
  • $ svn -m "Delete message" delete "/path"
    💡 Delete with log message
  • $ svn copy "/source" "/target"
    💡 Copy source to target
  • $ svn move "/source" "/target"
    💡 Move source to target
Logs and Blame
Protocols
Repo Admin
Miscellaneous
Item and Property Statuses
Argument Shortcuts