1
0
mirror of https://github.com/github/gitignore synced 2024-11-22 19:54:22 +01:00

Update and fix WordPress gitignore

This commit is contained in:
Pedro Machado Santa 2020-01-22 01:51:50 +00:00
parent 7ab549fcae
commit 4d9d3fff4a

View File

@ -1,23 +1,29 @@
# ignore everything in the root except the "wp-content" directory. # Wordpress - ignore core, configuration, examples, uploads and logs.
!wp-content/ # https://github.com/github/gitignore/blob/master/WordPress.gitignore
# ignore everything in the "wp-content" directory, except: # Core and configuration
# "mu-plugins", "plugins", "themes" directory /wp-admin/
wp-content/* /wp-content/index.php
!wp-content/mu-plugins/ /wp-content/plugins/index.php
!wp-content/plugins/ /wp-content/themes/index.php
!wp-content/themes/ /wp-includes/
/index.php
/license.txt
/readme.html
/wp-*.php
/xmlrpc.php
# ignore these plugins # Example themes
wp-content/plugins/hello.php /wp-content/themes/twenty*/
# ignore specific themes # Example plugin
wp-content/themes/twenty*/ /wp-content/plugins/hello.php
# ignore node dependency directories # Uploads
node_modules/ /wp-content/uploads/
# ignore log files and databases # Log files
*.log *.log
*.sql
*.sqlite # htaccess
/.htaccess