Tuesday 18 October 2016

What is the structure of branches in the repo?

SVN
Image result for svn tree structure

Perforce
Image result for perforce tree structure





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"
Tricks and Tips