What is the difference between hg forget and hg remove?

hg forget‘ is just shorthand for ‘hg remove -Af‘. From the ‘hg remove‘ help:

…and -Af can be used to remove files
from the next revision without
deleting them from the working
directory.

Bottom line: ‘remove‘ deletes the file from your working copy on disk (unless you uses -Af) and ‘forget‘ doesn’t.

Leave a Comment

tech