.gitignore is ignored by Git

前端 未结 30 1905
梦毁少年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:38

    If you are a Notepad++ user, try doing the following:

    Open your .gitignore file using Notepad++ and do:

    Menu EditEOL ConversionWindows FormatSave.

    Try using git status again and see if it works for you.

    I have posted the answer to a similar question here.

提交回复
热议问题