开发者

Branch after I made changes?

开发者 https://www.devze.com 2023-02-25 09:34 出处:网络
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)?N

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 t开发者_如何学Goime, hence why I am asking here.


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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消