Linux SVN 恢复文件

发布于 2024-10-18 16:36:19 字数 207 浏览 4 评论 0原文

最近对未版本化目录的更新删除了一堆文件。有没有办法可以手动恢复这些丢失的文件?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╰ゝ天使的微笑 2024-10-25 16:36:19

如果文件在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文