I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem?
This would be equivalent to git's rm --cached
.
gitmercurial
I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem?
This would be equivalent to git's rm --cached
.
Best Answer
You can use
hg forget <file>
if files have just been added, however if the files have already been committed usehg rm --after <file>
.The help is a bit misleading, it should be
hg rm --do-not-touch-the-filesystem
.