Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近,我使用 sourcetree 将我的文件夹推送到 bitbucket。但由于这是我第一次,在我设置 .git 之前,我不小心使用 sourcetree 软件删除了我的本地仓库。现在我没有任何备份。有没有办法恢复整个文件夹?谢谢你。
如果您只将文件夹添加到 Source Tree,并且没有提交,那么您应该看到以下对话框:
如果是这种情况,那么正如警告所说,这些文件几乎丢失了,除非您可以在回收站或通过其他恢复软件找到它们。
相反,如果您在删除存储库之前提交了所有文件,那么您所需要恢复的只是.git目录。您仍然需要在回收站中找到它和/或使用恢复软件。
.git
对不起,我没有更好的消息告诉你。