"commit --amend" and extraneous files

Victor Sudakov vas at sibptus.ru
Tue Feb 4 08:29:29 UTC 2020


Dear Colleagues,

If I wanted to commit just several files:

hg commit -m "Foo" file1.c file2.c

and instead committed the whole working dir:

hg commit -m "Foo"

What is the right way to amend the problem (so that files other than
file1.c and file2.c become uncommitted again)?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/


More information about the Mercurial mailing list