I needed to step back a few commits to check where something went wrong. Or at what point something went wrong.
This works with a mixture of local commits and with primary commits sent to remote.
- git stash # whatever isn't committed yet
- git checkout X #go back in time - where X is the SHA256 hash of the commit
- git checkout . # throw away any changes
- git checkout master #go forward to current
- git stash pop # bring back any unsaved changes

