I backed up a git project, and got “fatal: Not a Git Repository”

后端 未结 2 1886
無奈伤痛
無奈伤痛 2021-01-21 20:17

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 director         


        
2条回答
  •  自闭症患者
    2021-01-21 20:46

    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:

    Now, I realise that this might open a can of worms ... would we also want to go looking for files called "pack-ab~1.pac" ?

    Hell, no.

    So, to this day people still rename head in HEAD when that happens.

提交回复
热议问题