Why is .gitignore not ignoring .DS_Store? [duplicate] July 30, 2023 by Tarik You can also remove committed .DS_Store files like this: git rm --cached .DS_Store