I am looking to use nuget without committing the packages. I want to ignore in mercurial all packages subfolder that are located in the /packages/
folder, but I do not want to exclude the repositories.config
file located in the /packages/
folder.
How should I write the exclusion regex to do that?
Can't you just do this:
hg add packages/repositories.config
And then have this in your .hgignore file
syntax: glob
packages
?
syntax: regexp
packages/(?!repositories.config).*
[source]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With