Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
Created June 21, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielwrobert/c2be0ded5a70a024a9fd to your computer and use it in GitHub Desktop.
Save danielwrobert/c2be0ded5a70a024a9fd to your computer and use it in GitHub Desktop.
My .gitignore for WordPress Projects. Also consider excluding all of the third-party plugins from the wp-content/plugins/ folder and manage those through WP-CLI.
.htaccess
wp-*.php
xmlrpc.php
wp-admin/
wp-includes/
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/*
sitemap.xml
sitemap.xml.gz
readme.html
license.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment