I performed git commit --amend
.
I made some changes, but wanted to discard them, so I then performed git reset --hard HEAD
, thinking it would go back to the point I amended. It seems to have gone back to the point of the original commit.
There are numerous answers to undoing a git reset --hard HEAD
on here, but none specifically that deal with a undoing a reset
in this situation (with an amend
involved), and I just wanted to make sure I should follow the same pattern before proceeding.
This seems to be the most popular answer: How can I undo git reset --hard HEAD~1?
EDIT
You know what, I'm realizing I've done a couple of --amend
s today without first doing git add .
. What a crappy day. Is there any way to get back the work if I didn't git add .
?