简体   繁体   English

SVN更新后还原已删除的目录

[英]Restore deleted directory after SVN Update

I had some uncommited changes on my working copy and left them laying around for a long time. 我对工作副本进行了一些未提交的更改,并将它们放置了很长时间。 The other guys from my team removed the entire directory where the scripts I was working were. 我团队中的其他人删除了我正在处理脚本的整个目录。 After the update, since they have removed these files on the repo, they have been removed from my working copy too. 更新之后,由于它们已从存储库中删除了这些文件,因此它们也已从我的工作副本中删除。 Reverting the working copy will cause it to revert to the previous update before the latest one, which will unfortunately lose my changes. 还原工作副本将导致其还原到最新更新之前的先前更新,不幸的是会丢失我的更改。 Any chance to recover my local uncommited changes that have been replaced by the update? 是否有机会恢复已被更新替换的我本地未提交的更改?

This question is to some extent a duplicate of How to undo an svn update? 这个问题在某种程度上是如何撤消svn更新的副本 .

As the answer to that question discusses, the answer is that your dirty working copy is gone, gone, gone after you update. 正如该问题的答案所讨论的那样,答案是,更新后您的脏工作副本不见了。 SVN cannot help you here. SVN在这里无法帮助您。

Of course, if you have another backup system (eg recycle bin), you can try your luck with that (as discussed in comments). 当然,如果您有另一个备份系统(例如,回收站),则可以尝试使用该备份系统(如评论中所述)。

Next time, consider running svn status --show-updates first to see what will happen when you update. 下次,请考虑先运行svn status --show-updates来查看更新时会发生什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM