Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: Undo last commit? · Junio C Hamano <hidden> · 2016-06-15

Re: Undo last commit?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:32

Mike [off-list ref] writes:
"git reset --soft HEAD^" can't be picked up that quickly by a
beginner, but git uncommit would be obvious!
So would "git commit --amend", before which "reset --soft HEAD^" was the
only way to prepare doing it, but after which "reset --soft HEAD^" more or
less outlived its usefulness for that particular use case.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help