为什么 Git 文件/对象会损坏?

时间:2021-07-17 15:11:20

标签: git

我是 Git 的新手,并且已经在我的 Ubuntu 虚拟机上使用它几个星期了。通常,我会在 Visual Studio Code 终端中运行我的 git 命令。每当我在我的虚拟机上启动一个新会话时,我已经多次遇到以下错误。
error: object file ... is empty
fatal: loose object ... is empty

立方生菜 here 提供的解决方案设法解决了这个问题。出于好奇,为什么会发生这种情况?有什么我应该避免做的事情来防止我的本地 git 存储库被破坏?

谢谢! :)

0 个答案:

没有答案