Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SmartSVN: How to branch-off working copy from trunk

I am using SmartSVN 6.6 on my Mac OS X 10.8. I need to create new branch from working copy in trunk of my iOS project. Can anybody explain steps needed for that?? Thanks in advance.

like image 299
Salman Zaidi Avatar asked Feb 17 '23 10:02

Salman Zaidi


2 Answers

A branch in Subversion is nothing more than a copy.

svn cp URL_TO_TRUNK URL_TO_BRANCH
svn switch . URL_TO_BRANCH

See also below links:

  • http://www.svnforum.org/threads/30924-howto-branch-working-copy-changes-without-committing
  • http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html#svn.branchmerge.using.create
like image 74
alroc Avatar answered Feb 20 '23 00:02

alroc


There is also a quick method, that I have learnt using SmartSVN in which you can branch-off code without using terminal.

Step 1: Create a folder in your branches folder and give whatever name you want to give.

Step 2: Add folder to repository by selecting folder and clicking Add button.

Step 3: Right Click your project from your trunk folder and select Copy option.

Step 4: Choose your destination folder you have just created.

Step 5: select options for new branch and you are done.

like image 43
Salman Zaidi Avatar answered Feb 19 '23 23:02

Salman Zaidi