Answers for "git reset comit"

48

undo commit

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
Posted by: Guest on April-07-2020
7

git reset

git reset --soft HEAD~3
git commit
git push —force-with-lease origin
Posted by: Guest on June-23-2020

Browse Popular Code Answers by Language