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

后端 未结 9 1584
暗喜
暗喜 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 13:12

    Comment line as the first line of the file is critical! I spent considerable time trying to exclude files only to find that GIT was ignoring the first line in the ignore file.

提交回复
热议问题