I have a commit onto which I have amended some files. Some of these files that were part of the amend I do not want in this commit. Is there a way in Mercurial to remove certain files from the commit without losing the changes I have made to them? Thank you.
Steps:
- Made some changes
- hg commit -m
- Made some more changes (some of these file accidentally amended)
- hg amend
-X somefile.txt
argument does not help if the file was already commited, but reverting the changes to the previous version do the trick. – Barbur