mirror of
https://github.com/github/gitignore
synced 2024-11-22 03:34:23 +01:00
Update and fix WordPress gitignore
This commit is contained in:
parent
7ab549fcae
commit
4d9d3fff4a
@ -1,23 +1,29 @@
|
||||
# ignore everything in the root except the "wp-content" directory.
|
||||
!wp-content/
|
||||
# Wordpress - ignore core, configuration, examples, uploads and logs.
|
||||
# https://github.com/github/gitignore/blob/master/WordPress.gitignore
|
||||
|
||||
# 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/
|
||||
# Core and configuration
|
||||
/wp-admin/
|
||||
/wp-content/index.php
|
||||
/wp-content/plugins/index.php
|
||||
/wp-content/themes/index.php
|
||||
/wp-includes/
|
||||
/index.php
|
||||
/license.txt
|
||||
/readme.html
|
||||
/wp-*.php
|
||||
/xmlrpc.php
|
||||
|
||||
# ignore these plugins
|
||||
wp-content/plugins/hello.php
|
||||
# Example themes
|
||||
/wp-content/themes/twenty*/
|
||||
|
||||
# ignore specific themes
|
||||
wp-content/themes/twenty*/
|
||||
# Example plugin
|
||||
/wp-content/plugins/hello.php
|
||||
|
||||
# ignore node dependency directories
|
||||
node_modules/
|
||||
# Uploads
|
||||
/wp-content/uploads/
|
||||
|
||||
# ignore log files and databases
|
||||
# Log files
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# htaccess
|
||||
/.htaccess
|
Loading…
Reference in New Issue
Block a user