Is it possible to ignore a certain subfolder that matches a pattern?

For example I want to ignore all .git directories inside a folder.

Let’s say I have this structure:

 - Project
 - - vendor
 - - - package
 - - - - .git
 - - - package2
 - - - - .git

I want to ignore all the .git directories.

I tried this pattern:

vendor/**/.git

But doesn’t work.

@fazal We don’t implement matching subfolder patterns yet, sorry.