Skip to content

Instantly share code, notes, and snippets.

@sjmacneil
Last active August 29, 2015 14:19
Show Gist options
  • Save sjmacneil/6b1ddc97dc00bb9e3e8a to your computer and use it in GitHub Desktop.
Save sjmacneil/6b1ddc97dc00bb9e3e8a to your computer and use it in GitHub Desktop.
Global .gitignore
### OSX ###
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
ehthumbs.db
Thumbs.db
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Logs & Databases ###
*.log
*.sql
*.sqlite
### Packages ###
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
### Compiled Source ###
*.com
*.class
*.dll
*.exe
*.o
*.so
### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# workspace files are user-specific
*.sublime-workspace
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
sftp-config.json
### Node ###
# Logs
logs
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
### Bower ###
bower_components
.bower-cache
.bower-registry
.bower-tmp
### grunt ###
# Grunt usually compiles files inside this directory
dist/
# Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory
.tmp/
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
### Sass ###
.sass-cache
*.css.map
### Tyfoon & Postman ###
tyfoon/
postman/
postman*/
### Project Notes ###
notes.md

How to ignore all the things

  1. Open Terminal.
  2. Enter the following command in your terminal:
git config --global core.excludesfile ~/.gitignore_global
  1. Open the .gitignore_global you just created in your text editor of choice.
  2. Copypasta the contents of that sweet, sweet .gitignore_global here into your new .gitignore_global.
  3. Save and close the file.
  4. ???
  5. Congration You Done it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment