Skip to content

Instantly share code, notes, and snippets.

@RadGH
Last active March 8, 2020 22:37
Show Gist options
  • Save RadGH/c5bedfb640fc15242766ef048225fa03 to your computer and use it in GitHub Desktop.
Save RadGH/c5bedfb640fc15242766ef048225fa03 to your computer and use it in GitHub Desktop.
Radley's Git Ignore for WordPress development
# Radley's WP development structure. Git repo should be based in the wp-content folder.
#
# Alternatively, try the Github official WordPress gitignore structure from the document root:
# https://github.com/github/gitignore/blob/master/WordPress.gitignore
# File Extensions
*.log
*.sql
*.sqlite
# Specific files
db.php
advanced-cache.php
sunrise.disabled.php
sunrise.php
# Specific folders
.idea/
ai1wm-backups/
cache/
popupally-pro-scripts/
upgrade/
uploads/
w3tc-config/
wp-rocket-config/
# Ignore third party themes and plugins
themes/*
plugins/*
# ALLOW specific themes and plugins which should be version controlled
!themes/your-theme
!plugins/your-plugin
# Tip: If you prefix your plugins like "rs-bulk-export", you can use a wildcard like "!plugins/rs-*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment