.gitignore not working: files that should be ignored still get committed

后端 未结 9 1586
暗喜
暗喜 2020-12-24 12:37

I\'m trying to create a new git repository from existing folder. I\'ve created a .gitignore file in the root of the folder. But if I say

git add         


        
9条回答
  •  感情败类
    2020-12-24 12:59

    I've had issues with .gitignore also. I checked out the linked answers listed about, which fixed half the issue.

    What really got gitignore working full for me was adding a comment on the first line of the file. Git wasn't parsing the exclude situated on the first line.

    Cheers

提交回复
热议问题