Linux SVN 恢复文件
最近对未版本化目录的更新删除了一堆文件。有没有办法可以手动恢复这些丢失的文件?
PS 我无法从颠覆中恢复它们,因为我正在寻找的文件从未提交给 SVN 控制。我查看了linux垃圾文件夹,其中只包含已手动删除的文件。
编辑:实际上,文件是由于意外的 svn rm 操作而丢失的。不幸的是,我无法使用恢复,因为我尝试恢复的文件是新创建的并且尚未受版本控制。有什么想法吗?
A recent update over unversioned directories removed a bunch of files. Is there a way I can manually recover these lost files?
P.S. I cannot recover them from subversion, as the files I am looking for were never committed to SVN control. I have looked in the linux trash folder, which only contains files which have been manually deleted.
edit: Actually, the files were lost through an accidental svn rm operation. Unfortunately I cannot use revert as the files I am trying to recover were newly created and not under version control yet. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果文件在
svn update
操作期间丢失,您无能为力。我建议查找您的编辑器可能创建的隐藏备份文件(在文件最初所在的目录或编辑器的临时目录中)。如果您记得其中一个文件的名称,则可以尝试使用
find
来查看磁盘上的某个位置是否有该文件的备份副本。If files were lost during a
svn update
operation, there's not a lot you can do. I would suggest looking for hidden backup files that your editor may have created (in the directory where the file originally was or in the editor's temporary directory).If you remember the name of one of the files, you can try using
find
to see if there's a backup copy of it somewhere on the disk.