Skip to content

Instantly share code, notes, and snippets.

@heyfletch
Created March 28, 2014 04:36
Show Gist options
  • Save heyfletch/9825512 to your computer and use it in GitHub Desktop.
Save heyfletch/9825512 to your computer and use it in GitHub Desktop.
.gitignore for local development with WP Engine, Grunt, Sass, and common plugins
Thumbs.db
Desktop.ini
_notes
.svn
.project
.idea/
.DS_Store
.cvs
*~
*.tmproj
*.swp
*.sublime-workspace
*.sublime-project
*.bak
#Theme Specific
wp-content/themes/merchantguru/node_modules
wp-content/themes/merchantguru/.sass-cache
#wp-content/themes/merchantguru/assets/css/main.min.css.map
#Local Specific
.gitattributes
.htaccess
sitemap.xml
sitemap.xml.gz
robots.txt
README.md
# wordpress specific
wp-config.php
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
wp-content/cache/*
wp-content/cache/supercache/*
# More WordPress specific
wp-content/w3tc*
wp-content/w3tc/*
w3-total-cache-config-preview.php
wp-content/plugins/comment-validation-reloaded/library/admin/cache/
wp-content/plugins/wp-minify/cache/
wp-content/xhc-xmt/*
clear-cache.php
wp-content/debug.log
readme.html
searchreplacedb2.php
searchreplacedb2cli.php
#WordPress Local
local-config.php
wp-config-local.php
disable-plugins-when-doing-local-dev.php
# wpengine specific
.smushit-status
.gitattributes
_wpeprivate
wp-content/object-cache.php
wp-content/mu-plugins/mu-plugin.php
wp-content/mu-plugins/slt-force-strong-passwords.php
wp-content/mu-plugins/limit-login-attempts
wp-content/mu-plugins/wpengine-common
wp-content/mysql.sql
# wp core (as of 3.4.1)
/db-config.php
/index.php
/license.txt
/readme.html
/wp-activate.php
/wp-app.php
/wp-atom.php
/wp-blog-header.php
/wp-comments-post.php
/wp-commentsrss2.php
/wp-config-sample.php
/wp-cron.php
/wp-feed.php
/wp-links-opml.php
/wp-load.php
/wp-login.php
/wp-mail.php
/wp-rdf.php
/wp-rss.php
/wp-rss2.php
/wp-pass.php
/wp-register.php
/wp-settings.php
/wp-signup.php
/wp-trackback.php
/xmlrpc.php
/wp-admin
/wp-includes
/wp-content/index.php
/wp-content/themes/twentyten
/wp-content/themes/index.php
/wp-content/plugins/index.php
# large/disallowed file types
# a CDN should be used for these
*.hqx
*.bin
*.exe
*.dll
*.deb
*.dmg
*.iso
*.img
*.msi
*.msp
*.msm
*.mid
*.midi
*.kar
*.mp3
*.ogg
*.m4a
*.ra
*.3gpp
*.3gp
*.mp4
*.mpeg
*.mpg
*.mov
*.webm
*.flv
*.m4v
*.mng
*.asx
*.asf
*.wmv
*.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment