SVN Client Commands

1). svn --help: List Subversion commands
2). svn h : Same as Help
3). svn ? : Same as Help
4). svn help : Same as Help
5). svn add filename/directory : Add a file or directory to Subversion "Change Management" CM control.
6). svn blame filename : Show file contents with revisions annotated with author information.
7). svn praise filename : Show file contents with revisions annotated with author information.
8). svn annotate filename : Show file contents with revisions annotated with author information.
9). svn ann filename : Show file contents with revisions annotated with author information.
7). svn blame -r RevisionNumber filename
8). svn cat filename : List contents of file under Subversion control.
9). svn checkout http://node-name/repos/svn/trunk/parentPath/path : Checkout a repository.
10). svn co -r 497 http://node-name/repos/svn/trunk/path file-name : Checkout a revision
11). svn co https://..., svn://..., and svn+ssh:// : For different type of protocols
12). svn cleanup : Cleanup subversion files resulting from escaped processes and crashed.
13). svn commit filename : Commit a single file on the server.
14). svn commit --message "Message goes here." filename : Commit a single file on the server with message
15). svn commit -m "Message goes here." filename
16). svn ci filename1 filename2 filename3
17). svn ci .
18). svn copy source destination_clone : Copy file or directory tree. One can copy from one local working copy to another or to repository server URL's. The sources and destinations can be working copies or URLs.
19). svn cp source destination_clone : Same as svn copy
20). svn copy http://host/repos/project/trunk http://host/repos/project/tags/TagName-1.4.5 -m "Tag Release 1.4.5" : Tag a release. Takes a snapshot of the repository and assigns a name. This can be performed at any directory branch.
20). svn copy . http://host/repos/project/tags/TagName-1.4.5 -m "Tag Release 1.4.5" : Tag a release. Takes a snapshot of your local working copy and assigns a name. This can be performed at any directory branch.
21). svn delete filename/directory : Deletet the filename or directory from the SVN
22). svn del filename/directory : Deletet the filename or directory from the SVN
23). svn remove filename/directory : Deletet the filename or directory from the SVN
24). svn rm filename/directory : Deletet the filename or directory from the SVN
25). svn diff filename : Show file diffs between SVN repository and your file changes using GNU file diff format. Use GUI diff tools as shown below.
26). svn di filename : Show file diffs between SVN repository and your file changes using GNU file diff format. Use GUI diff tools as shown below.
27). svn diff -r rev1:rev2 filename : Show file diffs between specified versions.
28). svn diff filename > patch-file : Generate a file for difference
29). svn export directory : Export directory tree to your file system but it will not be a "working directory" under SVN control.
30). svn export -r Rev-Number http://node-name/path : Export directory tree of specified version and create local directory tree and files not under SVN control.
31). svn import local-directory http://node/repos/svn/trunk/directory : Add directory (and files in it recursively) to path in repository specified.
32). svn info filename: Display information about file or directory. (Date modified, author, revision, path in repository.)
33). svn list directory/Filename : List file or directory of files in repository. Used to browse repository before checkout. If current directory is given (svn list ./), then Subversion will list the repository URL of the current directory.
34). svn list -r RevisionNumber directory : List directory of files in repository in specified revision.
35). svn lock filename -m "comment as to why its locked or by whom" : Lock file to grant exclusive access to one and forbid all others. A commit will unlock the file (unless the "--no-unlock" option is used). A lock can be removed with the commands: svn unlock filename, svnlook and the svnadmin comands (i.e. List: svnadmin lslocks and remove: svnadmin rmlocks filename).
36). svn log : You can see the log messages for all the paths that changed in your working copy by running svn log from the top.
37). svn log foo.c : Examine all log messages for a particular file in your working copy:
38). svn log http://svn.red-bean.com/repos/test/foo.c : If you don't have a working copy handy, you can log a URL
39). svn log -v http://svn.red-bean.com/repos/test/ foo.c bar.c : The --verbose (-v) option causes svn log to include information about the paths that were changed in each displayed revision. These paths appear, one path per line of output, with action codes that indicate what type of change was made to the path.
40). svn log > log.txt : It will write all the logs to the particular file.
41). svn merge http://url/path/branch1 http://url/path/branch2 working-local-dir : Merge directory changes into your current working directory or merge a file in Subversion into the file in your working directory. If target is not specified, the identical basename or current directory is assumed. Used to incorporate changes checked in which are not accounted for in your file or to merge branches.
42). svn merge file1@revJ file2@revK
43). svn merge -r 414:411 http://url/path working-dir
44). svn merge -r 413:HEAD file-name
45). svn merge -r 414:413 http://url/path : Undo changes committed in revision 414.
46). svn merge -r 414:413 .
47). svn mkdir directory : Create a new directory under version control.
48). svn move directory1 directory2 : Rename or move a file or directory. Moves/renames file/directory in repository and in local work area.Must perform svn ci file-new-name after the move for changes to to take place in repository.
49). svn mv directory1 directory2 : Same as Move
50). svn mv file-old-name file-new-name : Same as move
51). svn revert filename : Undo changes in local work files. Throw away local changes.
52). svn status : Show status of file changes in current directory and recursively in directories below.
53). svn status -u : -u: Determines status by comparing your local repository with the server repository. Without this option, the status shown will only be the changes you have made in your local repository.
54). svn status --show-updates : Same as -u
55). svn switch http://server/new-branch : Switch your local working copy to mirror a new repository branch instead of main trunk or previous branch. Also allows you to point your repository to a new path on the server if the server path changes since you performed a check-out.
56). svn switch --relocate http://server/old-path http://server/new-path : Same as svn switch
57). svn update : Migrate all updates from Subversion repository to your local copy (recusively for all files in the current directory and all below it). If there have been updates to the svn repository since you downloaded the files, subversion will give you the opportunity to merge. Status of files will use the coding as stated above for "status". Files marked with a "C" (conflict) should be merged of reverted. If merged then one can perform a "resolve" and then a "check-in".If a file name is specified, only that file is updated.
Can also syncronize to a specified revision given by -r.
Use --ignore-externals to avoid the slow processing of externals to a potentially slow distant internet server.
58). svn update filename : Same as update
59). svn update -r458 filename : Same as update
60). svn resolved filename : Run this command after resolving merge conflicts. Next "commit" your changes.

Options:
----------
A: File to be added
C: Conflicting changes
D: File to be deleted
G: File to be merged with updates from server
M: File has been modified
R: File to be replaced
G: File to be merged
X: Resource is external to repository (svn:externals)
?: File/directory not under version control
!: File/directory missing
~: Versioned item obstructed by some item of a different kind.