Tuesday, 18 October 2016

How to create a branch in SVN?

HTTPS

If you're repo is available via https, you can use this command to branch ...
svn copy https://host.example.com/repos/project/trunk \
       https://host.example.com/repos/project/branches/branch-name \
  -m "Creating a branch of project"

SVN+SSH

Subversion makes it easy (some think too easy) to create a new branch using the svn copy command.
$ svn copy svn+ssh://host.example.com/repos/project/trunk \
           svn+ssh://host.example.com/repos/project/branches/NAME_OF_BRANCH \
      -m "Creating a branch of project"

No comments:

Post a Comment

Tricks and Tips