Subversion cheat sheet
|
Homepage
|
|
|
SVN Book
|
|
svn
|
Command line program
|
|
svnversion
|
Revision of working copy
|
|
svnlook
|
Inspect repository
|
|
svnadmin
|
Repository administration
|
|
svndumpfilter
|
Filter repository stream
|
|
mod_dav_svn
|
Apache module
|
|
svnserve
|
SVN server (SVN protocol)
|
|
svnsync
|
Mirror repository
|
|
file://
|
Local machine
|
|
http://
|
HTTP (Apache)
|
|
https://
|
HTTPS (SSL)
|
|
svn://
|
SVN (svnserve)
|
|
svn+ssh://
|
SVN over SSH
|
|
$ svn help
|
|
$ svn help import
Show help for "import" command
|
|
$ svnadmin create "/path/to/repository"
Create new repository
|
|
$ svnadmin setlog "/path" -r 7 message.txt
Change log message for revision 7 to contents of file message.txt
|
|
$ svnadmin dump "/path/to/repository" > filename
Dump repository to file (backup)
|
|
$ svnadmin load "/path/to/repository" < filename
Load repository from file (restore)
|
|
$ svn proplist "/path"
List properties
|
|
$ svn propset PROP VAL "/path"
Set PROP to VAL for path.
|
|
$ svn propget PROP "/path"
Get value of PROP
|
|
$ svn propedit PROP "/path"
Edit PROP
|
|
$ svn propdel PROP "/path"
Delete PROP
|
|
$ 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 update "/path"
Update path
|
|
$ svn update -r9 "/path"
Update path to revision 9
|
|
$ svn add *
Add all items, recursively
|
|
$ svn add itemname
Add itemname (if folder, adds recursively)
|
|
$ svn add * --force
Force recursion into versioned directories
|
|
$ svn commit "/path"
Commit changes to path
|
|
$ svn commit -m "Message" "/path"
Commit with log message
|
|
$ svn commit -N "/path"
Commit without recursion
|
|
$ svn import "/path/to/folder" "/path"
Import and commit local folder
|
|
$ 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
|
|
$ svn log "/path"
Show log messages for path
|
|
$ svn blame "/path"
Show commits for path
|
|
$ svn revert "/path"
Revert changes to path
|
|
$ svn revert -R "/path"
Revert changes recursively
|
|
$ svn diff "/path/file"
|
|
$ svn diff "/path/file@2" "/path/file@7"
|
|
$ svn diff -r 2:7 "/path/folder"
|
|
$ 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
|
|
$ svn resolve "/path"
Resolve conflict
|
|
$ svn cleanup "/path"
Remove locks and complete operations
|
|
$ svn lock "/path"
Lock path
|
|
$ svn unlock "/path"
Unlock path
|
|
$ svn status "/path"
Get path status
|
|
$ svn cat "/path"
View file contents
|
|
No modifications (blank)
|
|
|
A
|
Addition
|
|
D
|
Deletion
|
|
M
|
Modified
|
|
R
|
Item replaced
|
|
C
|
In conflict
|
|
X
|
Externals definition
|
|
I
|
Ignored
|
|
?
|
Not in repository
|
|
!
|
Item missing
|
|
~
|
Object type changed
|
|
-m "Message"
|
--message
|
|
-q
|
--quiet
|
|
-v
|
--verbose
|
|
-r
|
--revision
|
|
-c
|
--change
|
|
-t
|
--transaction
|
|
-R
|
--recursive
|
|
-N
|
--non-recursive
|
Is this valid for Subversion 1.7.x?
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.