- 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 -Rto recursively revert all files
- To RESOLVE merge conflicts:
-
svn statusto displayCin 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>:-
cdto local copy of <branch> - get the rev. number where the branch was created, or where it was last merged:
svn log --stop-on-copy -
cdto 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>-
cdto local copy of <branch> - get the rev. number where <branch> was created:
svn log --stop-on-copysvn merge -r <rev>:HEAD svn://svn/<repository>/trunk <branch>- resolve conflicts
svn commit
-
- To MERGE from
<new branch>to<old branch>-
cdto local copy of <old branch> - get the rev. number where the old branch was created:
svn log --stop-on-copy -
cdto 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