如何使用命令行SVN强制恢复特定版本号?
我在上一篇关于破坏事情的帖子中说得太早了。
我试图使用命令
svn update -r 1124
恢复到修订版1124,但我不断收到如下错误消息:
[prague]$ svn update -r1024
U app/webroot/css/group_themes/green.css
U app/webroot/css/style.css
Skipped 'app/webroot/index.php'
svn: Failed to add directory 'app/webroot/images/users': an unversioned directory of the same name already exists
我们得到了一些东西备份,但仍然不是我知道我昨晚检查过的确切版本...我认为恢复到特定版本会更容易:(
没有找到相关结果
已邀请:
3 个回复
细瑞
在一个新目录中。 随着提交 根据svn手册,如果要提交以前的修订版,则需要使用反向合并。请参阅http://svnbook.red-bean.com/en/1.0/ch04s04.html,“撤消更改”。
其次是
括宠
顺便说一句,帮自己一个忙,看看SVN的一些替代品,比如Mercurial,Bazaar或Git。我发现转换非常愉快;)
妒垮
但是这不会让您提交更改,因为SVN需要您在提交之前将工作副本更新为HEAD。你可以做的是