有什么方法可以将对Trunk的SVN检出所做的更改提交到分支吗? [英] Is there any way to commit changes that I've made to my SVN checkout of trunk to a branch instead?

查看:101
本文介绍了有什么方法可以将对Trunk的SVN检出所做的更改提交到分支吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始对SVN存储库上的中继进行一些更改,以为它们会很小。现在,我实际上开始意识到我可能应该刚开始创建一个新分支。除了建立一个分支然后将每个单独的片段移入其中,还有什么方法可以建立一个新的分支,然后将我的工作副本中的更改提交给它?

I just started working on some changes against trunk on an SVN repo, thinking they would be somewhat small. Now, I actually am beginning to realize that I probably should have just started a new branch instead. Rather than making a branch, and then moving each individual piece into it, is there any way to make a new branch and then commit the changes in my working copy to it?

推荐答案


  1. 从开始开发的地方创建新分支

  2. 切换到新创建的分支

  3. 提交本地更改(将提交到新分支)

请勿进行任何结帐

我使用svn 1.6.5进行操作,它可以正常工作,但是如果您确实偏执,可以执行以下操作:

I do it with svn 1.6.5, it works without trouble but if you are really paranoid you could do following:


  1. 从当前工作副本创建补丁

  2. 创建分支

  3. 切换到该分支

  4. 应用补丁

  5. 提交

  1. create a patch from current working copy
  2. create a branch
  3. switch to it
  4. apply the patch
  5. commit

这篇关于有什么方法可以将对Trunk的SVN检出所做的更改提交到分支吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆