diff --git a/WordPress.gitignore b/WordPress.gitignore index a32768a9..be4d27d1 100644 --- a/WordPress.gitignore +++ b/WordPress.gitignore @@ -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 \ No newline at end of file