Skip to content

Instantly share code, notes, and snippets.

@obviousdisaster
Created July 31, 2019 12:49
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 obviousdisaster/c4a2bbd200211cffa2797be6f651473c to your computer and use it in GitHub Desktop.
Save obviousdisaster/c4a2bbd200211cffa2797be6f651473c to your computer and use it in GitHub Desktop.
Wordpress .gitignore #wordpress #git
# ignore everything in the root except the "wp-content" directory.
!wp-content/
# ignore everything in the "wp-content" directory, except:
# "mu-plugins", "plugins", "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ignore these plugins
wp-content/plugins/hello.php
# ignore specific themes
wp-content/themes/twenty*/
# ignore node dependency directories
node_modules/
# ignore log files and databases
*.log
*.sql
*.sqlite
error_log
# remove Autoptimize plugin crap
wp-content/cache/autoptimize/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment