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

前端 未结 10 2095
一整个雨季
一整个雨季 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:35

    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.

提交回复
热议问题