Each line in a .gitignore file specifies a pattern. When deciding whether to ignore a path, Git normally checks .gitignore patterns from multiple sources… https://git-scm.com/docs/gitignore
PATTERN FORMAT
- # – comment
- foo/ – will match a directory foo
- ! – negates the pattern
/**
-
matches everything inside.