Let’s say I commit 5 changesets, and I want to update to the 3rd:
git checkout 3rd sha .
After I do the checkout, I’m in the exact state I was at the 3rd revision. So, I want to make it so that if I run git status it will only show me things that changed in respect to that changeset. I don’t want git status to use HEAD as it’s reference. I would like behavious similar to mercurial’s. Is this possible? Is this possible without checking out that revision to a new branch?
Do a
git reset <3rd sha>and dogit diff,git statusetc.To go back to original head, use
git reset HEAD@{1}orgit reflogand find the appropriate sha and reset to it