Reputation: 63415
My .gitignore
file is:
precompiled
!deployments
I want to exclude the ./precompiled
directory, but not ./deployments/xxx.war/WEB-INF/application/precompiled
, more precisely I want to include EVERYTHING in ./deployments folder...
I tried with several combinations (!./deployments/**/*
, ./precompiled/**/*
, etc.) with no luck.
How can I do this?
Upvotes: 2
Views: 129
Reputation: 90316
Try with
/precompiled
This will exclude only the precompiled
folder at the root, not the precompiled
subfolders
Upvotes: 2