Global gitignore


My notes on global gitignore

In terminal: (macOS Mojave)

  1. git config --global core.excludesfile ~/.gitignore
  2. cd ~/
  3. touch .gitignore_global
  4. open .gitignore_global add: .DS_Store

And you’re done 🎉