Skip to content

Instantly share code, notes, and snippets.

@ErikBernskiold
Created July 8, 2014 15:08
Show Gist options
  • Save ErikBernskiold/1492fcbdd94ffef1fd2d to your computer and use it in GitHub Desktop.
Save ErikBernskiold/1492fcbdd94ffef1fd2d to your computer and use it in GitHub Desktop.
.gitignore for version controlled WordPress
###################
# .gitignore
#
# We include all core files in the project repo and split passwords
# into ignored situational configurations so that we can store the wp-config.
###################
# WordPress #
#############
# Uploads, cache etc.
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/*
wp-content/cache/
wp-content/backups/
# Database connection configs
local-config.php
production-config.php
dev-config.php
# Sitemap
sitemap.xml
sitemap.xml.gz
# Others #
##########
# Ignore SASS cache files
**.sass-cache**
# Ignore .svn directories
.svn*
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment