gitignore just doesn't work. I can't get it to ignore .DS_Store & .gitignore files

前端 未结 10 2050
一整个雨季
一整个雨季 2021-02-07 20:12

I have .gitignored .DS_Store and .gitignore files. But still see them in the \"git status\".

Can someone explain to me how I can m

10条回答
  •  迷失自我
    2021-02-07 20:21

    I had an issue getting .DS_Store ignored where the problem was that it had already been committed to the repo. Removing it resolved the issue.

    $ git rm --cached .DS_Store
    

提交回复
热议问题