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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.