Skip to content

Instantly share code, notes, and snippets.

@gevans
Last active December 27, 2015 03:19
Show Gist options
  • Save gevans/7258155 to your computer and use it in GitHub Desktop.
Save gevans/7258155 to your computer and use it in GitHub Desktop.
Use a global gitignore. They're super helpful in avoiding redundancy (e.g. ignoring .DS_Store in every freaking project ever).
##
# OSX
##
.DS_Store
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
##
# Tools & Software
##
# SublimeText project files
/*.sublime-project
# Vim
.*.sw[a-z]
*.un~
Session.vim
#!/bin/sh
curl https://gist.github.com/gevans/7258155/raw/68f2dc519e3e50251683c42efa5303ba8ec80948/.gitignore > $HOME/.gitignore
git config --global core.excludesfile $HOME/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment