如何恢复 TortoiseSVN 意外删除的已删除文件?

发布于 2024-07-08 03:03:33 字数 379 浏览 8 评论 0原文

这是一次意外,我认为没有解决办法。 但我还是要问。

我将 SVN 引入了我们的网上商店,并将所有开发电脑的 htdocs 设置为存储库的一部分。 (我的第一个错误)

现在,我的一个同事正在开发一个项目,但没有将他们的代码提交到 svn (第二个错误)。 他的理由是,他是唯一一个在该站点上工作的人,并且他不需要 svn(另一个错误:我将 SVN 作为协作工具引入)

我指示每个人的 SOP 是:更新,然后在启动和关闭其时签出个人电脑。

不用说,我同事的项目消失了。

所以我的问题是:有什么方法可以恢复未提交的代码吗?

PS,我计划在我们的规则中添加“源代码不存在,除非它在颠覆中”和“每日备份”,以防止这种情况再次发生。

This is an accident and I don't think there's a solution. But I'm asking anyways.

I introduced SVN to our webshop and I set all the dev pc's htdocs as part of the repository. (my first mistake)

Now, one of my coworkers are working on a project and didn't commit their code to svn (second mistake). His reasoning was that he's the only one who's doing work on that site and he don't need svn (another mistake: I introduced SVN as a collaborative tool)

I instructed everyone's SOP to be: update and then checkout when starting and shutting down their PC.

Needless to say, my coworker's project disappeared.

So my question is: is there any way to recover the uncomitted code?

P.s., I'm planning to add "source code doesn't exist unless its in subversion" and "backup daily" to our rules to prevent this from happening again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

2024-07-15 03:03:33

你不会在 SVN 中找到答案,但你可以使用类似这样的取消删除工具< /a>.

在驱动器被格式化之前,文件并没有真正消失(长)。

You won't find the answer in SVN, but you can use something like this undelete tool.

A file isn't really gone until the drive is formatted (long).

丘比特射中我 2024-07-15 03:03:33

如果这些文件从未提交并且它们不再位于硬盘驱动器上,那么我担心它们可能已经消失了,除非您的用户有手动备份,或者其他一些恢复/取消删除策略有效。

If the files were never committed and they're no longer on the hard drive, then I'm afraid they're probably gone, unless your user has manual backups, or some other recovery/undeletion strategy works out.

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