August 2016 Update (seven years later, Git 2.9.3 / Git 2.10)
**/bin/*.dll
It works for any depth.
Original answer (2009, Git 1.6)
Have you tried:
**/bin/*.dll
It works with my msysgit1.6.3 (with the .gitignore file in the root directory of the Git workspace).
Actually, the above will ignore " x/bin/z.dll ", not " x/y/bin/z.dll ".
Another syntax could be:
**/*/bin/*.dll
But it will only be depth 3, not depth 2!
So, if you have too much space where you need to ignore * .dll, the simplest solution will still be the local .gitignore file in these "bin" directories ...
Or a set of directives to cover the main first depths:
binbin*/bin/*.dll ***/bin/*.dll
etc., all in one .gitignore file.
VonC Jun 09 '09 at 17:47 2009-06-09 17:47
source share