Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Branch after I made changes?

Tags:

svn

I made some changes to code which I was planning on checking in. I actually need to branch and then commit those changes. What is the proper way of doing this without losing data (I'll make a backup)? Note that I haven't only changed files; I have also done renames. I want to get it right the first time, hence why I am asking here.

like image 453
Nelson Rothermel Avatar asked Apr 14 '11 19:04

Nelson Rothermel


2 Answers

You want the svn switch command

  1. Branch from trunk / HEAD. (Despite warnings if using Visual SVN)
  2. Use SCN Switch to switch to the new branch.
  3. Commit working copy changes to the branch.
like image 132
Grammin Avatar answered Oct 05 '22 18:10

Grammin


If your changes are in an existing working copy, and you want to use that as the basis for your branch, you can branch from your Working Copy (WC) and get to work. Check out the copy command to create your branch from your WC.

Sorry for the lack of command line specifics, I'm a pampered TortoiseSVN user!

like image 22
AlG Avatar answered Oct 05 '22 18:10

AlG