我备份了一个git项目,并得到了“致命的:不是Git仓库”
问题描述:
我从Linux备份了一个git文件夹到FAT32的外部驱动器上,并在稍后将其复制回来,并表示说:
I backed up a git folder from Linux onto a FAT32 external drive, and copied it back later, and it said
fatal: Not a git repository (or any of the parent directories): .git
可能已经消失错误?
答
要添加到您的答案,有一个 2007年的补丁提议允许像'头部
'这样的名称,而不是只有' HEAD
'。
To add to your answer, there was a proposition of a patch back in 2007 allowing for name like 'head
' instead of only 'HEAD
'.
毋庸置疑,这个主张并不完全受欢迎:
Needless to say, this proposition was not exactly welcomed:
现在,我意识到这可能会打开一堆蠕虫...我们还想要查找名为
pack-ab〜1.pac
?
地狱,没有。
因此,到今天为止,当发生了这种情况。
So, to this day people still rename head in HEAD when that happens.