From: Harald Nordgren Date: Tue, 30 Jun 2026 07:19:59 GMT Subject: Re: [PATCH v5 0/4] history: add squash subcommand to fold a range Message-ID: In-Reply-To: > This is probably a larger question, since (according to the man page) it > affects the other 'git history' commands as well. When I run > 'git history ...' and discover that I made a mistake after inspecting > the results, is there a fool-proof way to undo the change and return to > the previous state? My first thought was to run 'git reset --hard ...', > but the default behavior of --update-refs (moving other branches) can > make this more complicated. This is a larger question: But I would love to have a reflog that is more human-centered. When e.g. rebasing a series with N commits, it's very tricky in the reflog to find what was the state before that. I feel like branch switching is given too much space in the reflog, since it's not a destructive action, I don't care about it. And when handling multiple commits in on go (squashing, rebasing), I would love to see a visual hierarchy (with indentation for sub-steps) instead of treating each action as equally important when it isn't. Harald