diff options
author | Rohan Vakharia <rohanvakharia@users.noreply.github.com> | 2019-05-12 18:35:22 +0530 |
---|---|---|
committer | Brendan Forster <brendan@github.com> | 2019-05-12 10:05:22 -0300 |
commit | 445fddf9b674b853cb07741b9e78cdc8205298bf (patch) | |
tree | bfb8a709d17460f738c30183deda19ca41697113 /WordPress.gitignore | |
parent | d82e9e96ffed61eb55e8e9ee87d2e3a6f05660d0 (diff) | |
download | gitignore-445fddf9b674b853cb07741b9e78cdc8205298bf.tar.gz gitignore-445fddf9b674b853cb07741b9e78cdc8205298bf.zip |
Updated ignored list (#2972)
Diffstat (limited to 'WordPress.gitignore')
-rw-r--r-- | WordPress.gitignore | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/WordPress.gitignore b/WordPress.gitignore index 3b181ec0..a32768a9 100644 --- a/WordPress.gitignore +++ b/WordPress.gitignore @@ -1,19 +1,23 @@ -*.log -wp-config.php -wp-content/advanced-cache.php -wp-content/backup-db/ -wp-content/backups/ -wp-content/blogs.dir/ -wp-content/cache/ -wp-content/upgrade/ -wp-content/uploads/ -wp-content/mu-plugins/ -wp-content/wp-cache-config.php +# 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 -/.htaccess -/license.txt -/readme.html -/sitemap.xml -/sitemap.xml.gz +# ignore specific themes +wp-content/themes/twenty*/ +# ignore node dependency directories +node_modules/ + +# ignore log files and databases +*.log +*.sql +*.sqlite |