Applying hgignore file to already committed file Mercurial repo
hgignore, mercurial, tortoisehg, version-control
Solution
- Edit `.hgignore` to match files you want to ignore
- `hg forget "set:hgignore()"` and commit
See in action:
- https://asciinema.org/a/kuJERsouDkOUBspADjDM5pMRQ
See also:
- hg remove all files listed in .hgignore
- How to check which files are being ignored because of .hgignore?
Problem
Trying to do something similar to here: Applying .gitignore to committed files Where you apply the new hgignore file to the already committed files. I have node_modules folder already committed with thousands of files and I'd like to remove it by using the new hgignore file. I can't find anything online for it to work on a Mercurial repo, any ideas? Thanks!