Skip to content

Instantly share code, notes, and snippets.

@4selin
Created July 3, 2018 08:55
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 4selin/01ed34dc6b42835b64e115192c26fa0f to your computer and use it in GitHub Desktop.
Save 4selin/01ed34dc6b42835b64e115192c26fa0f to your computer and use it in GitHub Desktop.
wp .gitignore
#PhpStorm
/.idea
#Vendor (e.g. Composer)
/vendor/
#Wordpress Core Files
index.php
license.txt
readme.html
wp-*.php
!/wp-config*
xmlrpc.php
wp-content/languages
wp-content/mu-plugins
wp-content/upgrade
wp-content/uploads
wp-content/logs
wp-admin
wp-includes
#Wordpress Cache
wp-content/cache
wp-content/w3tc-config
wp-content/object-cache.php
wp-content/advanced-cache.php
#WordPress Plugins
#https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder
!wp-content/plugins/
wp-content/plugins/*
#plugins to include
!wp-content/plugins/your-plugin/
#Custom rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment