git clean -d -f后恢复丢失的未版本化文件 [英] recover lost unversioned files after git clean -d -f

查看:743
本文介绍了git clean -d -f后恢复丢失的未版本化文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有感觉这个问题的答案是否定的,但我想我会问无论如何。



长话短说我不小心做了一个 git clean -d -f 在分支上丢失了大约20个我需要的文件。这些文件还没有提交,据我所知git不应该知道它们。有没有什么办法可以让这些文件恢复?解析方案 不幸的是,你唯一的选择是文件系统取消删除程序。为了获得最大的成功率,请勿在该卷上执行任何事情,直到您获得并可以使用反删除程序(即,甚至不会将反删除程序下载到该卷上)。


I have the feeling the answer to this question is no but I figured I would ask anyways.

Long story short I accidentally did a git clean -d -f on a branch and lost about 20 files that I needed. These files have not been committed so as far as I know git shouldn't know about them. Is there any way I can get these files back?

解决方案

Unfortunately, your only option is a filesystem "undelete" program. For maximum probability of success, don't do anything on that volume until you obtain and can use an undelete program (ie. don't even download the undelete program onto that volume).

这篇关于git clean -d -f后恢复丢失的未版本化文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆