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

后端 未结 9 1638
暗喜
暗喜 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:01

    You could have created a UTF-8 encoded text file. Try saving it as ANSI encoded. In git bash, you can verify by using vi -b.

提交回复
热议问题