- To get HELP on subversion:
svn help <command>
- the svn manual is at
http://svnbook.red-bean.com/
- the svn manual is at
- To REVERT uncommitted changes inside a branch:
cp <file>
to another location as a precaution-
svn revert <file>
orsvn revert -R
to recursively revert all files
- To RESOLVE merge conflicts:
-
svn status
to displayC
in first column for conflicted files - manually fix each file and replace old binary files with new ones
- type
svn resolved <file>
for each file or typesvn -R resolved
to resolve all files recursively -
svn commit
-
- To CREATE
<branch>
:-
svn copy svn://svn/<repository>/trunk svn://svn/
/branches/<branch> -
<branch>
creates within the repository and does not create locally - auto-commit will follow
-
- To CREATE
<new branch>
from<old branch>
:-
svn copy svn://svn/<repository>/branches/<old branch> svn://svn/<repository>/branches/<new branch>
-
<branch>
creates within the repository and does not create locally - auto-commit will follow
-
- to DELETE
<branch>
:-
svn delete svn://svn/<repository>/branches/<branch>
-
<branch>
removes within the repository; careful! - auto-commit will follow
-
- To MERGE
<branch>
to<trunk>
:-
cd
to local copy of <branch> - get the rev. number where the branch was created, or where it was last merged:
svn log --stop-on-copy
-
cd
to local copy of<trunk>
- make sure it's the latest & greatest:
svn update
- do the actual merge; plug in <rev> and <branch>:
svn merge -r <rev>:HEAD svn://svn/<repository>/branches/<branch>
- resolve conflicts
-
svn commit
-
- To MERGE from
<trunk>
to<branch>
-
cd
to local copy of <branch> - get the rev. number where <branch> was created:
svn log --stop-on-copy
svn merge -r <rev>:HEAD svn://svn/<repository>/trunk <branch>
- resolve conflicts
svn commit
-
- To MERGE from
<new branch>
to<old branch>
-
cd
to local copy of <old branch> - get the rev. number where the old branch was created:
svn log --stop-on-copy
-
cd
to local copy of <new branch> -
svn merge -r <rev>:HEAD svn://svn/<repository>/branches/<old branch>
- resolve conflicts
svn commit
- resolve conflicts
-
Bill authored this last week for the guys at work.
No comments:
Post a Comment