mirror of
https://github.com/github/gitignore
synced 2024-11-25 21:24:23 +01:00
Merge pull request #3295 from pedrosanta/wordpress-update
Update and fix WordPress gitignore
This commit is contained in:
commit
7ea3e97f84
@ -1,23 +1,48 @@
|
|||||||
# 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
|
||||||
# "mu-plugins", "plugins", "themes" directory
|
#
|
||||||
wp-content/*
|
# Note: if you want to stage/commit WP core files
|
||||||
!wp-content/mu-plugins/
|
# you can delete this whole section/until Configuration.
|
||||||
!wp-content/plugins/
|
/wp-admin/
|
||||||
!wp-content/themes/
|
/wp-content/index.php
|
||||||
|
/wp-content/languages
|
||||||
|
/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
|
# Configuration
|
||||||
wp-content/plugins/hello.php
|
wp-config.php
|
||||||
|
|
||||||
# ignore specific themes
|
# Example themes
|
||||||
wp-content/themes/twenty*/
|
/wp-content/themes/twenty*/
|
||||||
|
|
||||||
# ignore node dependency directories
|
# Example plugin
|
||||||
node_modules/
|
/wp-content/plugins/hello.php
|
||||||
|
|
||||||
# ignore log files and databases
|
# Uploads
|
||||||
|
/wp-content/uploads/
|
||||||
|
|
||||||
|
# Log files
|
||||||
*.log
|
*.log
|
||||||
*.sql
|
|
||||||
*.sqlite
|
# htaccess
|
||||||
|
/.htaccess
|
||||||
|
|
||||||
|
# All plugins
|
||||||
|
#
|
||||||
|
# Note: If you wish to whitelist plugins,
|
||||||
|
# uncomment the next line
|
||||||
|
#/wp-content/plugins
|
||||||
|
|
||||||
|
# All themes
|
||||||
|
#
|
||||||
|
# Note: If you wish to whitelist themes,
|
||||||
|
# uncomment the next line
|
||||||
|
#/wp-content/themes
|
Loading…
Reference in New Issue
Block a user