How to hg forget what .hgignore lists? How to hg forget what .hgignore lists? unix unix

How to hg forget what .hgignore lists?


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 intoMercurial.After hg forget the .hgignore file will take effectand prevent them from being added again. More precisely, the .hgignorefile 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.