Skip to content

Commit 445fddf

Browse files
rohanvakhariashiftkey
authored andcommitted
Updated ignored list (#2972)
1 parent d82e9e9 commit 445fddf

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

WordPress.gitignore

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
*.log
2-
wp-config.php
3-
wp-content/advanced-cache.php
4-
wp-content/backup-db/
5-
wp-content/backups/
6-
wp-content/blogs.dir/
7-
wp-content/cache/
8-
wp-content/upgrade/
9-
wp-content/uploads/
10-
wp-content/mu-plugins/
11-
wp-content/wp-cache-config.php
1+
# ignore everything in the root except the "wp-content" directory.
2+
!wp-content/
3+
4+
# ignore everything in the "wp-content" directory, except:
5+
# "mu-plugins", "plugins", "themes" directory
6+
wp-content/*
7+
!wp-content/mu-plugins/
8+
!wp-content/plugins/
9+
!wp-content/themes/
10+
11+
# ignore these plugins
1212
wp-content/plugins/hello.php
1313

14-
/.htaccess
15-
/license.txt
16-
/readme.html
17-
/sitemap.xml
18-
/sitemap.xml.gz
14+
# ignore specific themes
15+
wp-content/themes/twenty*/
1916

17+
# ignore node dependency directories
18+
node_modules/
19+
20+
# ignore log files and databases
21+
*.log
22+
*.sql
23+
*.sqlite

0 commit comments

Comments
 (0)