如何还原 SVN 提交? [英] How do I revert an SVN commit?
本文介绍了如何还原 SVN 提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我找到了各种如何还原 SVN 提交的示例,例如
I have found various examples of how to revert an SVN commit like
svn merge -r [current_version]:[previous_version] [repository_url]
或
svn merge -c -[R] .
但它们似乎都不起作用.我尝试了这些命令并检查了手动更改的文件.
But neither of them seems to work. I tried those commands and checked the files that were changed by hand.
如何还原修订号为 1944 的提交?如何检查还原是否已完成(无需查看实际文件中的更改是否已还原)?
How do I revert a commit with revision number 1944? How do I check that the revert has been done (without looking in the actual file to the changes have been reverted)?
推荐答案
两个例子都必须工作,但是
Both examples must work, but
svn merge -r UPREV:LOWREV .
撤销范围
svn merge -c -REV .
撤销单个修订
在这种语法中 - 如果当前目录是 WC 并且(每次合并后都必须完成)你将提交结果
in this syntax - if current dir is WC and (as in must done after every merge) you'll commit results
您想查看日志吗?
这篇关于如何还原 SVN 提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文