Skip to content

Instantly share code, notes, and snippets.

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 haqHUB/6e4a2c2fa50bcdd813d511051c30646e to your computer and use it in GitHub Desktop.
Save haqHUB/6e4a2c2fa50bcdd813d511051c30646e to your computer and use it in GitHub Desktop.
.gitignore file for setting up the WordPress development environment.
########################
# Wordpress Core files #
########################
wp-admin/
wp-content/backups/
wp-content/blogs.dir/
wp-content/languages/
wp-content/index.php
wp-content/themes/index.php
wp-includes/
index.php
license.txt
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
#####################################
# Wordpress untracked plugins files #
#####################################
wp-content/plugins/index.php
wp-content/plugins/akismet/
wp-content/plugins/debug-bar/
wp-content/plugins/[etc.]
######################################
# Wordpress specific untracked files #
######################################
wp-config-local.php
wp-content/uploads/
wp-content/upgrade/
##################################
# W3 Total Cache untracked files #
##################################
wp-content/advanced-cache.php
wp-content/db.php
wp-content/object-cache.php
wp-content/cache/
wp-content/plugins/w3-total-cache/
wp-content/w3tc-config/
############
# Sitemaps #
############
sitemap.xml
sitemap.xml.gz
#################################
# Web Master Verification files #
#################################
google<SomeHash>.html
yandex_<SomeHash>.html
######################
# OS generated files #
######################
.DS_Store
.DS_Store?
.localized
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
[Tt]humbs.db
#############################
# Logs, databases and misc. #
#############################
*.log
*.sql
*.sqlite
*.sass-cache
############
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment