.gitignore is ignored by Git

前端 未结 30 1354
梦毁少年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
    慢半拍i (楼主)
    2020-11-22 03:23

    OK, so in my case the accepted solution did not work, and what worked is described here:

    Is Visual Studio 2013 ignoring your .gitignore file?

    In short:

    • Close Visual Studio.
    • Navigate to your .git folder
    • Delete ms-persist.xml
    • Restart Visual Studio

提交回复
热议问题