how to see deleted commit git
git reflog show
restore deleted commits
# Run this command:
git reflog
# Scan the first few entries, and find the commit that was lost.
# Keep track of the identifier to that commit (you can use either the 1st or 2nd columns).
# Let's call the identifier "ID".
# If you have not made any extra work since you did the reset --hard you can do:
git reset --hard ID
git push -f origin master
# If you have made other work since the reset,
# you could cherry-pick if back onto your branch like this:
git cherry-pick ID
git push origin master
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us