Subversion:我可以签出,修改然后使其成为分支吗? [英] Subversion: Can I checkout, modify, and then make it a branch?

查看:108
本文介绍了Subversion:我可以签出,修改然后使其成为分支吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从后备箱到本地DIR进行了结帐,并在那里进行了许多本地更改.现在,我不想将其提交回主干,但我希望从此本地版本中创建一个分支.有可能吗?

I did a checkout from my trunk to a local DIR and made lots of local changes there. Now I don't want to commit it back to the trunk, but I'd rather make a branch from this local version. Is that possible?

我可以只将中继线复制到分支,然后将cd DIRsvn switch复制到分支吗?

Can I just copy the trunk to a branch, and then cd DIR and svn switch to the branch?

更新:感谢您的回答,它奏效了!总结步骤:

UPDATE: Thanks for the answers, it worked! To summarize the steps:

  • cd DIR
  • svn copy . new-branch-URL
  • svn switch new-branch-URL .
  • cd DIR
  • svn copy . new-branch-URL
  • svn switch new-branch-URL .

(注意点)

推荐答案

根据其命令行帮助svn copy可以从目录复制到存储库URL.因此,您应该能够将工作副本复制到分支机构,例如:

According to its command line help svn copy can copy from a directory to a repository URL. So you should be able to copy your working copy to the branch, e.g.:

svn copy working_directory url_to_branch

这篇关于Subversion:我可以签出,修改然后使其成为分支吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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