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

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

    Are your files already tracked? .gitignore only silences comments about untracked files, but won't stop a tracked file from being tracked.

提交回复
热议问题