I just did:
git reset --merge
and I lost my latest modifications to some files, how do I undo this last action?
you can look at your reflog to find the commit at wich you were before:
git reflog
Once you find your previous commit, copy the sha-1 hash and
git reset <commit sha-1> --hard
Although, if what you lose was uncommitted modifications, well then they're lost.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With