gpt4 book ai didi

svn - 如何继续使用旧版本的 Assembla SVN?

转载 作者:行者123 更新时间:2023-12-01 10:53:27 24 4
gpt4 key购买 nike

在开发过程中,我犯了一些代码错误,在发现错误之前不小心犯了错误。我的修订版 259 和 261 之间的代码更改非常重要。

有没有办法在恢复到 259 之后,继续前进并消灭 260 和 261?

我正在使用 tortoisesvn 和 assembla svn。

最佳答案

正确的方法是恢复那些提交,即添加新提交以取消由 260 和 261 引入的修改:参见“SVN Revert Trunk, remove a revision as if it never existed?

svn merge -r [current_version]:[previous_version] [repository_url]
svn commit -m “Reverting previous commit and going back to revision [previous_version].”

If you're using TortoiseSVN, you could just show the logs, select the commit, and choose "Revert changes from this revision" in the context menu.

另请参阅“SVN - delete a revision, or make an older revision the head”。

但另一种更激进的方式是 dump and reload the SVN repo , 删除不需要的修订。

我更喜欢第一种解决方案,但这取决于你想要什么。

关于svn - 如何继续使用旧版本的 Assembla SVN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16784934/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com