Skip to content

Instantly share code, notes, and snippets.

@mefellows
Created August 18, 2013 06:23
Show Gist options
  • Save mefellows/6260192 to your computer and use it in GitHub Desktop.
Save mefellows/6260192 to your computer and use it in GitHub Desktop.
My global .gitignore settings
# Sass
.sass-cache
# Mac
.DS_Store
# Tmp files
*.swp
*~
tmp
# Eclipse junk
.project
.settings
# Java
*.class
*.jar
*.war
*.ear
# Typical excludes
bin
output
target
# PHP
composer.lock
vendor
# WordPress
.htaccess
wp-content/uploads/
wp-content/blogs.dir/
wp-content/upgrade/
wp-content/backup-db/
wp-content/advanced-cache.php
wp-content/wp-cache-config.php
sitemap.xml
*.log
wp-content/cache/
wp-content/backups/
sitemap.xml.gz
@mefellows
Copy link
Author

Copy into ~/.gitignore and then run the following to apply globally to all of your repos:

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

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