Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.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
You can’t perform that action at this time.