Git Global gitignore

You can set up a global .gitignore file that lists files that will be ignored on all Git projects. This is the preferred way of ignoring editor artifacts, toolchain log files, OS files, and other miscellaneous crap.

Enabling global gitignore

git config --global core.excludesfile ~/.gitignore_global

Entries to add

Edit ~/.gitignore_global and add these items below.

# Debug logs (npm, yarn)

# Editor artifacts

# OS files

Feel free to add more! More examples over at