DS_Store files in git repositories is a minor problem for a lot of people. Global .gitignore files are a great solution to not commiting DS_Store files but it won’t actively remove them from your project directories.
This is my shortcut for git status
:
function s() { find . -name '*.DS_Store' -type f -delete #find and delete DS_Store files git status -s -b #s - simple output, b - include branch name }