Undo a commit?
Andreas Tscharner
andy at vis.ethz.ch
Tue Jul 14 04:34:42 CDT 2009
On 14.07.2009 09:35, Joseph Turian wrote:
> How do I undo a commit?
You can do an actual UNDO with a
*hg rollback*
But as previous said, this only works for the last commit. When undoing
with a rollback, this commit will not show up in the changelog
You can undo the changes of a former commit using
*hg backout*
Backout undoes the given earlier commit and creates a new head. You have to
hg merge
and
hg commit after that. And this actions will be logged, e.g. they will
show up in the changelog.
Best regards
Andreas
--
("`-''-/").___..--''"`-._
`o_ o ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
(il).-'' (li).' ((!.-'
Andreas Tscharner andy at vis.ethz.ch ICQ-No. 14356454
More information about the Mercurial
mailing list