Create a branch
-
svn copy/cp <from_branch> <to_branch> -m <message>
The last directory of
to_branch
cannot exist before using the command, otherwise another wrapper directory would be created, with the name of the last directory offrom_branch
.
Switch to a branch
svn switch/sw <to_branch> <directory>
Merge two branches
- Clean up the working copy, especially the modified files, for the incoming merge changes
- Switch to the target branch you want to merge code into
svn merge <from_branch>
Revert versioned changes in the working copy
svn revert -R <directory>
Revert a single commit of the branch of the working copy
svn merge -c <revision-number>
Print commit history
-
without commit message
svn log -q
Print list of changed files
svn di[ff] -r <start-revision>:<end-revision> --summarize