| 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 |
| 12 | wp-content/plugins/hello.php |
| 13 | |
| 14 | # ignore specific themes |
| 15 | wp-content/themes/twenty*/ |
| 16 | |
| 17 | # ignore node dependency directories |
| 18 | node_modules/ |
| 19 | |
| 20 | # ignore log files and databases |
| 21 | *.log |
| 22 | *.sql |
| 23 | *.sqlite |