My notes on global gitignore
In terminal: (macOS Mojave)
touch ~/.gitignore_global
open .gitignore_global
add:.DS_Store
git config --global core.excludesfile ~/.gitignore_global
And you’re done 🎉
To remove .ds_store files from project:
- Commit all files except
.ds_store
files - git stash all the
.ds_store
files