.gitignore does not understand my folder wildcard on windows

Posted by Martin Aatmaa on Stack Overflow See other posts from Stack Overflow or by Martin Aatmaa
Published on 2010-02-24T23:24:34Z Indexed on 2010/04/30 12:47 UTC
Read the original article Hit count: 956

Filed under:
|
|
|

I'm encountering a weird issue with .gitignore on Windows.

I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders).

So I have:

.gitignore:

*.exe
!/Dependencies/**/*.exe

This, unfortunately, does not work.

Meanwhile, this does:

*.exe
!/Dependencies/folder/subfolder/*.exe

So I'm wondering, am I messing something up, or is this some kind of bug?

I'm running msysgit on Windows (Windows 7 x64) version 1.6.5.1-preview20091022

Thanks in advance for any input :)

© Stack Overflow or respective owner

Related posts about git

Related posts about gitignore