Use .gitignore_global
Published at 19 April 2026
#git
I hate .DS_Store. The files that constantly sneak their way into git history. Not anymore!
SHELLgit config --global core.excludesfile '~/.gitignore_global' echo '.DS_Store' >> ~/.gitignore_global