Last Updated: February 25, 2016
·
4.262K
· srwalker101

Nested gitignores

You can nest gitignores in a project to have per directory ignore files.

e.g.

a/
a/.gitignore
a/b/
a/b/.gitignore

Now a/b/.gitignore can handle any ignoring in subdirectory b. This helps split up responsibility to separate directories for a larger code base.