Strange, the answers to other similar questions do not work for me, since my situation is slightly different from what others asked in StackOverflow.
I have this directory structure (simplified for illustration):
parent --directory1 ----bin --directory2 ----bin -directory3 ----bin ... and so on
I would like all bin directories to be ignored by Git, except for one of them (directory2 / bin). I tried this, but it does not work:
[Bb]in !directory2/[Bb]in
This does not work.
[Bb]in !parent/directory2/[Bb]in
I tried this too and it does not work:
[Bb]in !parent/directory2/[Bb]in
Does anyone know how I can make this work?
thanks
source share