Feature request: make reset --hard add something to the reflog
- From
Josh Bleecher Snyder <josharian@gmail.com>
- Date
- May 19, 2025, 19:45 UTC
- Message-ID
- <CAFAcib_PV4EB-i4PUmTxCx_6LX=8aWDNT_ZPrN0-EDsRwRfi4g@mail.gmail.com>
Hi!
A feature request:
I git reset --hard a lot. Every once in a while, it hurts, just infrequently enough that I forget the pain and do it again.
I wish that git reset --hard would silently stash, add to reflog, stash drop (or the moral equivalent) and then do the reset. That way I could always recover my state post-facto.
Thanks, Josh