Skip to content

Instantly share code, notes, and snippets.

@dpellenwood
Last active August 29, 2015 14:13
Show Gist options
  • Save dpellenwood/f2baf445ee1b178715cd to your computer and use it in GitHub Desktop.
Save dpellenwood/f2baf445ee1b178715cd to your computer and use it in GitHub Desktop.
.gitignore for Auto-Updated WordPress Sites
# WordPress .gitignore
# A collection of items that are common to every WordPress project,
# but don't need to be versioned for auto-updated sites.
#
# Created by DPE (http://dpedesign.com)
# Common OS/system files
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
*.log
Thumbs.db
.htaccess
# 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
# WordPress core & default items
wp-config.php
wp-content/index.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/plugins/index.php
wp-content/plugins/hello.php
wp-content/plugins/akismet/
wp-content/plugins/wordpress-importer/
wp-content/themes/index.php
wp-content/themes/twenty*/
wp-admin/
wp-includes/
sitemap.xml
sitemap.xml.gz
/*.php
/license.txt
/readme.html
# WP Engine specific items
.smushit-status
.gitattributes
_wpeprivate
wp-content/mysql.sql
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/plugins/hyperdb/
# Commonly used plugins and other project-specific items
wp-content/mu-plugins/wp-migrate-db-pro-compatibility.php
wp-content/plugins/flexible-posts-widget/
wp-content/plugins/gravityforms/
wp-content/plugins/regenerate-thumbnails/
wp-content/plugins/wordpress-seo/
wp-content/plugins/advanced-custom-fields/
wp-content/plugins/acf-*/
wp-content/plugins/debug-bar*/
wp-content/plugins/wp-migrate-db*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment