Skip to content

Instantly share code, notes, and snippets.

@ahaywood
Created February 16, 2015 06:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ahaywood/8f12eee136d9de33fd29 to your computer and use it in GitHub Desktop.
Save ahaywood/8f12eee136d9de33fd29 to your computer and use it in GitHub Desktop.
.gitignore for a Wordpress Project
# As Yeoman assumes the usage of Bower and Grunt, ignore the below:
bower_components
node_modules
# Ignore automatically generated cruft
*.log
.sass-cache
# Ignore config
local-config.php
# Operating system files
.Spotlight-V100
.Trashes
.DS_Store
.DS_Store?
ehthumbs.db
Thumbs.db
# Vagrant
.vagrant
# WordPress + popular plugin generated — adapted from:
# https://github.com/github/gitignore/blob/master/WordPress.gitignore
sitemap.xml
sitemap.xml.gz
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/index.php
wp-content/plugins/index.php
wp-content/themes/index.php
wp-content/uploads/
wp-content/upgrade/
wp-content/wp-cache-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment