将更改提交到与当前已检出分支的分支不同的分支 [英] Commit changes to a different branch than the currently checked out branch with subversion

查看:80
本文介绍了将更改提交到与当前已检出分支的分支不同的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究从开发线中签出的代码,发现所做的更改可能会破坏更改,因此需要在提交至主要开发树之前将其移至实验分支。但是,我没有退出实验分支,也不想丢失已经进行的更改。

I've been working on code checked out from the development line and discovered that the changes made might be breaking changes and need to be moved to an experimental branch before committing to the main dev tree. However, I don't have the experimental branch checked out and I don't want to lose the changes that have already been made.

有没有办法提交

推荐答案

您应该从已知的<$ c创建一个分支$ c> sourceURL (这是您在问题中提到的开发线)首先

You should create a branch from a known sourceURL (this would be your 'development line' you mentioned in the question) first:

svn copy sourceURL branchURL

然后,切换到该分支:

svn switch branchURL

然后提交您的更改:

svn commit

这篇关于将更改提交到与当前已检出分支的分支不同的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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