.gitignore is ignored by Git

前端 未结 30 2157
梦毁少年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条回答
  •  猫巷女王i
    2020-11-22 03:41

    For me none of the previous answers worked. I had to copy .gitignore text into the exclude.txt file found at

    \.git\info
    

    Once done, refresh your changes and all the untracked files are gone. Commit as usual.

提交回复
热议问题