un-add?

Matthieu Moy Matthieu.Moy at imag.fr
Wed Apr 1 15:18:31 CDT 2009


Aurélien Campéas <aurelien.campeas at logilab.fr> writes:

> Le Wednesday 01 April 2009 17:16:18 Neal Becker, vous avez écrit :
>> How should I un-add a file that was added, but not yet committed?
>>
>> hg add x
>> oops!
>> now what?
>
> hg rm -f x

... will remove the file x from the wworking tree. This may or may not
be the expected result. revert, pointed out below in the thread will
not touch the file on disk OTOH.

-- 
Matthieu


More information about the Mercurial mailing list