opensas
opensas

Reputation: 63415

excluding ignore from .gitignore file

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

Answers (1)

CharlesB
CharlesB

Reputation: 90316

Try with

/precompiled

This will exclude only the precompiled folder at the root, not the precompiled subfolders

Upvotes: 2

Related Questions