Answers for "how to undo a local commit"

7

undo local commit

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

revert local commit

$ git reset --hard HEAD~1
Posted by: Guest on March-03-2020
0

how to undo a local commit

git reset HEAD~1
Posted by: Guest on August-01-2021
-1

how to undo commit

git reset <commitId>
# Exemple
git reset 5310517
Posted by: Guest on October-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language