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

前端 未结 10 934
心在旅途
心在旅途 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:26

    Why you’re ignoring .gitignore? This doesn’t make a sense. If you want to ignore some files just locally (i.e. don’t track and publish this setting to the remote repository), then use .git/info/exclude instead. Just add .DS_Store to it, that’s all.

提交回复
热议问题