Instead of passing the name of a branch, you can pass any commit ID to checkout:
git checkout <commit-id>
See the man page.
Instead of passing the name of a branch, you can pass any commit ID to checkout:
git checkout <commit-id>
See the man page.