Thread (1 message) 1 message, 1 author, 2018-02-23
  • (off-list ancestor, not in this archive)
  • Re: RFC: git squash · Junio C Hamano <hidden> · 2018-02-23

Re: RFC: git squash

From: Junio C Hamano <hidden>
Date: 2018-02-23 20:31:10

Julius Musseau [off-list ref] writes:
I'm embarrassed to realise your approach matches the top-voted
stack-overflow answer on the subject:
https://stackoverflow.com/a/5201642
I personally do not visit stack-overflow, but I am happy to see that
there are people who remember "right" way to do this among the folks
who do.

"reset --soft" was invented exactly for this use case, and you can
use it even with dirty working tree and dirty index (they are left
intact).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help