If I reset to a changeset that is, let’s say HEAD^, then git log --all no longer displays the newer changeset above the current one. Is there a way to make it display as well?
If I reset to a changeset that is, let’s say HEAD^ , then git
Share
git reflogshould display the commit previously referenced by HEAD before your reset.(
git reflog, your safety net)See “Undoing a git reset –hard HEAD~1” as a concrete example.
You can also try, with
git logalone, the-goption:After all,
git reflogcan be done by agit log -g --oneline.The OP rFactor adds:
I don’t see how you can achieve that without filtering the output.
Jefromi concurs in the comments: