The following table provides a list of SVN commands:
Subversion has an extensive help system. To view the list of available commands, use SVN Help. Using svn help <command>
will give detailed information on the usage of the specified command, along with any switches that can be used with that command.
Syntax |
Usage |
---|---|
|
Shows a list of commands. |
|
Shows detailed help for that command. |
Syntax |
Usage |
---|---|
|
Performs a checkout, creating a working copy of the branch (or trunk) specified. |
|
As above, but checks out into a folder with the name specified. |
|
Updates your working copy to the specified revision (or the latest revision, if no revision number is specified). |
|
Used to add files to version control. Switches are filename, foldername (in which case subfolders and files will be added), * (all items will be added, recursively, ignoring already versioned folders), and * --force (which will recourse into versioned directories). |
|
Copies from the source path to the destination path. |
|
Moves files from the source path to the destination path. |
|
Deletes the target path. |
|
Reverts changes to the specified file or folder. |
|
Shows log messages. |
|
Shows commits and messages for the given path. |
|
See changes to filename. |
|
See changes to filename between revisions one and three. |
|
Apply the diff of URL1 and URL2 to filename. |
|
Commit changes to a file or folder |
|
Resolve a conflict. |
|
Remove locks and complete operations – acts recursively. |
|
Get a lock on the given path. |
|
Releases a lock on a given path. |
|
Prints the contents of the file to the screen. |
|
Shows the status of the path. |
|
Deletes |
|
Gets the value of |
|
Lists the properties of |
|
Sets |
These arguments can be added to SVN commands to modify the default behavior. For example, svn update will update to the latest revision by default, but svn update –r101
will update to revision 101.
Argument |
Usage |
---|---|
|
Adds a message |
|
Quiet |
|
Verbose |
|
Revision number |
|
Change |
|
Transaction |
|
Recursive |
|
Non recursive |