Last active
January 27, 2020 01:35
-
-
Save allysonsouza/ad5c8e507424cc3e71e00d635631f6c0 to your computer and use it in GitHub Desktop.
.gitignore template for WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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