Answers for "git undo latest commit local"

20

git undo commit

# Uncommit the changes
git reset --soft HEAD~1

# Completely delete the changes
git reset --hard HEAD~1
Posted by: Guest on September-04-2020
8

undo local commit

$ git reset --soft HEAD~1
Posted by: Guest on April-09-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language