当我从主干检出代码时,SVN 如何将代码检入特定分支?
我需要将代码更改签入某个分支,但我不确定如何执行此操作,因为我的代码来自 trunk =/
I need to check in my code changes to a certain branch but im not sure how to do that since my code is from trunk =/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
现在您的工作副本指向分支而不是主干。您还可以将分支作为单独的工作副本签出,然后将更改拖放到其中。
Now your working copy points to the branch instead of the trunk. You could also check out the branch as a separate working copy, then drag-and-drop your changes into it.
使用 Switch 允许您将签出从一个存储库位置更改为另一个存储库位置,例如将主干更改为分支。
然后您可以将更改提交到分支。
使用 TortoiseSVN,您可以执行以下操作。
有关此内容的文档可以此处找到。
Using Switch allows you to change a checkout from one repository location to another, such as Trunk to a branch.
Then you can commit the changes to the branch.
Using TortoiseSVN you can Perform Switch doing the following.
The documentation for this can be found here.
您需要拥有要提交到的分支的工作副本。因此,请在单独的目录中查看它,或使用
svn switch
。You need to have a working copy of the branch you want to commit to. So check it out in a separate directory, or use
svn switch
.除了切换之外,您还可以创建补丁。
http://ariejan .net/2007/07/03/如何创建并应用带有-subversion的补丁/
In addition to switching, you can also create a patch.
http://ariejan.net/2007/07/03/how-to-create-and-apply-a-patch-with-subversion/
我不确定确切的情况,但将更改合并到分支中可能是一个想法。
I'm not sure of the exact situtation, but it might be an idea to merge changes in to the branch.
我不确定确切的情况,但将更改合并到分支中可能是一个想法
,或者
您需要拥有要提交的分支的工作副本。所以在单独的目录中检查它,或者使用 svn 开关。
I'm not sure of the exact situtation, but it might be an idea to merge changes in to the branch
or
You need to have a working copy of the branch you want to commit to. So check it out in a separate directory, or use svn switch.
好吧,我找到了一种方法来做到这一点。签出分支,复制代码更改,然后从签出分支重新提交=]
Ok I found a way to do this. Check out the branch, copy code changes, and the recommit from checked out branch =]