Make Git never ask you again about .DS_Store In the terminal: echo .DS_Store > ~/.gitignore_global Now tell git to use it for all repositories: git config --global core.excludesfile ~/.gitignore_global