如何将旧版本从另一个 subversion 分支复制到主干上的 head 版本?

发布于 2024-09-29 16:16:05 字数 123 浏览 0 评论 0原文

我有一个存储库,我在其中分支并合并了一些更改到主干。但是我现在需要将主干恢复到我的分支上的修订版。

我想解决方案是使用 svn merge 但是我还没有成功地在分支上使用这个。

任何建议都会非常有用。

I have a repository where I have branched and merged back in some changes in to trunk. However I need to now revert trunk back to a revision on my branch.

I imagine the solution is to use svn merge however I have not succesfully been able to use this accross branches.

Any suggestions would be very useful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此刻的回忆 2024-10-06 16:16:05

将旧主干移走

svn move http:///.../trunk  http://..../branches/abandoned_trunk

然后复制旧版本成为新主干

svn copy http:///.../branches/the_branch@1234 http://.../trunk

Move the old trunk away

svn move http:///.../trunk  http://..../branches/abandoned_trunk

And then copy the old revision to become the new trunk

svn copy http:///.../branches/the_branch@1234 http://.../trunk
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文