I've tracked files I no longer want to track. So I've updated .hgignore but that doesn't result in them being forgotten. Other than manually hg forget each do I have other options?
With Mercurial 2.0, you can specify a fileset for this! To forget the ignored files, use:
$ hg forget "set:hgignore() and not ignored()"
I dont think there is another option.
You have already checked these files into
Mercurial.After hg forget the .hgignore file will take effect
and prevent them from being added again. More precisely, the .hgignore
file will make hg status stop showing the files as untracked
Tracked files are never affected by the .hgignore file. Well hg addremove could help you. Take a look here.
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