What is preferred way to undo add?
Sébastien Pierre
sebastien at xprima.com
Mon Jun 5 09:02:57 CDT 2006
Le lundi 05 juin 2006 à 15:51 +0200, Christian Ebert a écrit :
> * Neal Becker on Monday, June 05, 2006 at 09:23:54 -0400:
> > If I did add but not yet commit, what is the 'best' way to undo the add?
>
> $ hg remove -f addedbutnotyetcommitted
>
> works for me. Don't know if there's a better way.
This removes the file as well, which is not the undo of an add. I would
also be curious to know if there is a way to just say "do not track this
file anymore, but do not remove it" (which is what I would expect the
"undo add" to do).
-- Sébastien
More information about the Mercurial
mailing list