.gitignore is ignored by Git

前端 未结 30 1929
梦毁少年i
梦毁少年i 2020-11-22 02:51

My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture does Git expect?

30条回答
  •  执念已碎
    2020-11-22 03:33

    Also check out the directory where you put .gitignore.

    It should be in the root of your project:

    ./myproject/.gitignore
    

    Not in

    ./myproject/.git/.gitignore
    

提交回复
热议问题