Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Last active May 28, 2018 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save todiadiyatmo/36582703ca2fc0d4809689278d58085d to your computer and use it in GitHub Desktop.
Save todiadiyatmo/36582703ca2fc0d4809689278d58085d to your computer and use it in GitHub Desktop.
Git Ignore WordPress
*.log
*.zip
*.wpress
*.tar.gz
*.rar
*.tar
wp-config.php
/.htaccess
/license.txt
/readme.html
/sitemap.xml
/sitemap.xml.gz
# Includ only mu-plugin, plugins, themes folder from wp content
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# Cache file,the default is not to include this drop-in file. Except in special case you may include this file
#!wp-content/advanced-cache.php
#!wp-content/object-cache.php
#!wp-content/page-cache.php
#!wp-content/db.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment