gitignore: how to exclude a directory tree from being ignored
- From
- Peter <vmail@mycircuit.org>
- Date
- Oct 1, 2009, 11:07 UTC
- Message-ID
- <4AC48D5F.6060401@mycircuit.org>
Hi I want to exclude binaries except in a dir tree that I do not control.
In .gitignore I have:
!vendor/ *.exe *.o
I would expect that all *.exe and *.o are ignored except those somewhere in the vendor dir tree. However, the *.exe and *.o in the vendor dir tree are also ignored.
What is wrong ? Thanks for you help P