Created
July 31, 2019 12:49
-
-
Save obviousdisaster/c4a2bbd200211cffa2797be6f651473c to your computer and use it in GitHub Desktop.
Wordpress .gitignore #wordpress #git
This file contains hidden or 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
# ignore everything in the root except the "wp-content" directory. | |
!wp-content/ | |
# ignore everything in the "wp-content" directory, except: | |
# "mu-plugins", "plugins", "themes" directory | |
wp-content/* | |
!wp-content/mu-plugins/ | |
!wp-content/plugins/ | |
!wp-content/themes/ | |
# ignore these plugins | |
wp-content/plugins/hello.php | |
# ignore specific themes | |
wp-content/themes/twenty*/ | |
# ignore node dependency directories | |
node_modules/ | |
# ignore log files and databases | |
*.log | |
*.sql | |
*.sqlite | |
error_log | |
# remove Autoptimize plugin crap | |
wp-content/cache/autoptimize/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment