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

前端 未结 10 783
心在旅途
心在旅途 2021-02-07 19:40

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:36

    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
    

提交回复
热议问题