.gitignore recursively

Today -after a very frustrating hour- I found out git checks for .gitignore inside folders.

Folder tree example

  • .git (the root)
  • .gitignore
  • wp-content
    • themes
      • project
      • .gitignore (git also checks this one)