SVN - 删除修订,或将旧修订作为头部 [英] SVN - delete a revision, or make an older revision the head
问题描述
我对 SVN 还很陌生,我从来没有必要恢复到以前的修订版,尽管我可以从存储库中获取修订版的副本.我正在使用 TortoiseSVN 和 Visual Studio SVN 插件.
I'm fairly new to SVN and I've never had to revert back to a previous revision, although I can get a copy of a revision from the repository okay. I'm using TortoiseSVN and the Visual Studio SVN plugin.
我想将后备箱恢复到以前的版本.
I'd like to restore the trunk back to a previous revision.
如何恢复后备箱 - 例如回滚到以前的修订版并以此为首?
How can I restore the trunk - e.g. rollback to a previous revision and make this the head?
谢谢
推荐答案
你需要的是所谓的反向合并:
What you need is a so-called reverse merge:
svn merge -r HEAD:<rev_you_want_to_revert_to>
请参阅 Tortoise SVN 合并文档,了解有关如何使用 Tortoise SVN 做到这一点.另请参阅SVN 书籍(从另一个 StackOverflow 问题复制的链接;它实际上是一个常见问题解答).
See the Tortoise SVN merge documentation for details on how to do that with Tortoise SVN. Also see the SVN book (copied link from another StackOverflow question; it's actually a FAQ).
这篇关于SVN - 删除修订,或将旧修订作为头部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!