Skip to content

Instantly share code, notes, and snippets.

@allysonsouza
Last active January 27, 2020 01:35
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 allysonsouza/ad5c8e507424cc3e71e00d635631f6c0 to your computer and use it in GitHub Desktop.
Save allysonsouza/ad5c8e507424cc3e71e00d635631f6c0 to your computer and use it in GitHub Desktop.
.gitignore template for WordPress
# WORDPRESS
# Exclude WordPress core folders and root files.
wp-admin/
wp-includes/
*.php
# WP-CONTENT
# Ignore all wp-content, except for specified folders.
wp-content/*
!wp-content/haste/
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
!wp-content/uploads/
# PLUGINS
# Ignore specified plugins.
wp-content/plugins/hello.php
# THEMES
# Igrnoe specified themes.
wp-content/themes/twenty*/
# NODE
node_modules/
# SASS
.sass-cache/
# LOG FILES AND DATABASES
*.log
*.sql
*.sqlite
!wp-content/haste/db/db-*.sql
# PACKAGED FILES
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# SERVER
nginx.conf
.htaccess
# OPERATIONAL SYSTEM FILES
ehthumbs.db
Thumbs.db
# FILES STARTING WITH . OR ~ EXCETP .gitignore
.*
~*
!.gitignore
!.deployignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment