How to undo a commit.
Daniel Carrera
dcarrera at gmail.com
Mon Jun 21 14:02:15 UTC 2010
On Mon, Jun 21, 2010 at 3:56 PM, Steve Losh <steve at stevelosh.com> wrote:
> Running "hg rm -f" on a file that Mercurial is tracking will remove the file from Mercurial **and delete it from your working directory, even if it has local changes.**
>
> Running "hg forget" will only remove the file from the repo and *never* touch it in the working directory.
>
> "hg forget" is exactly equivalent to "hg rm -Af", but the name is more intuitive.
Aaaahhh... Thanks. Yes, "forget" is much more intuitive.
--
No trees were killed in the generation of this message. A large number
of electrons were, however, severely inconvenienced.
More information about the Mercurial
mailing list