fracasula
4/17/2014 - 9:47 AM

How to create a SVN branch from trunk

How to create a SVN branch from trunk

cd /var/www/project/trunk
svn copy . ^/branches/whatever -m "new whatever branch"

# getting the branch code from scratch
cd /var/www/project
svn checkout https://www.project.com/svn-repo/branches/whatever

# otherwise you can easily switch a working copy to make it point to the new branch
cd /var/www/project/branch # this is an existing directory with a working copy inside
svn switch ^/branches/whatever