恢复使用git clean -df删除的文件 [英] Restore files deleted with git clean -df
问题描述
从错误的目录添加文件并运行git clean -df函数后,我试图清除git.这导致我的所有用户数据被删除.
I was trying to clear my git after adding files from the wrong directory and ran the git clean -df function. This resulted in all my user data being deleted.
此后,我在git中没有做任何其他事情,并且现在我不敢打开计算机.但是,我注意到有一个.git文件夹,其中包含大约600MB的数据.是否有y个文件存储在那里并可以恢复?
I haven't done anything more in git after this, and I don't dare to turn of my PC at the moment. However, I noticed that there is a .git folder which contains about 600MB of data. Is it possible that y files are stored there and can be recovered?
我运行Windows 10,并且没有用户数据文件夹的任何备份或还原点.
I run Windows 10 and do not have any backup or restore points for the user data folder.
任何帮助将不胜感激,因为我已存储了非常重要的数据.谢谢
Any help would be greatly appreciated as I had som really important data stored. Thank you
推荐答案
除非有备份或想使用撤消删除实用程序进行探索,否则无法从中恢复.Git不会在任何地方保存备份.
There's no way to recover from this unless you had a backup or want to explore using undelete utilities. Git is not saving backups anywhere.
这篇关于恢复使用git clean -df删除的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!