SVN Tutorial: Create SVN Branch from Trunk

In this SVN tutorial i will be showing you how to create a new SVN branch from the working trunk with SVN commands examples.

Create branches/tags folder if it does not exist

In case branches or tags folders are not there then you need to create that folder first.

mkdir -- Create folder
--parents -- Will create all needed parent folders
-m -- To add messages or comments for that command

svn mkdir --parents -m "Create Statuslist branches folder" https:/svn.blah.blah/reponame/branches

 

 

Create SVN Branch from Trunk

Creating a new branch is very simple, in this example i will be creating branch and i will call it b2 from the trunk.

copy -- This will copy the trunk to a new branch
-m -- To add messages or comments for that command

svn copy https://repo/app-name/trunk https://repo/app-name/branches/upgrade -m "Create branch"

 


Subscribe to
for video tutorials updates