"commit --amend" and extraneous files

Malcolm Matalka mmatalka at gmail.com
Tue Feb 4 11:43:39 UTC 2020


Victor Sudakov <vas at sibptus.ru> writes:

> 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)?

Check out `hg backout` and `hg histedit` (I think they require an
extension.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20200204/3af52b73/attachment.asc>


More information about the Mercurial mailing list