本文翻译自:.gitignore all the .DS_Store files in every folder and subfolder
I've added .DS_Store to the .gitignore file, but it seems that it is only ignoring .DS_Store in the root directory, not in every folder and subfolder. 我已将.DS_Store添加到.gitignore文件中,但似乎它只忽略根目录中的.DS_Store,而不是每个文件夹和子文件夹。
How do I fix this? 我该如何解决?
#1楼
参考:https://stackoom.com/question/1FAzK/gitignore每个文件夹和子文件夹中的所有-DS-Store文件
#2楼
I think the problem you're having is that in some earlier commit, you've accidentally added .DS_Store