Skip to content

Instantly share code, notes, and snippets.

@torsday
Last active December 19, 2015 03:49
Show Gist options
  • Save torsday/5892674 to your computer and use it in GitHub Desktop.
Save torsday/5892674 to your computer and use it in GitHub Desktop.
Setting up Git Ignore globally

Setting up Git Ignore globally

Always ignore .DS_Store and vim swap files

Create

~/.gitignore

.DS\_Store
*.sw?

setup your global core.excludesfile configuration file to point to this global ignore file

$ git config --global core.excludesfile ~/.gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment