Answers for "revert local commit git bash"

19

revert local commit git bash

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
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
7

revert git commit

git revert <the_commit_hash>
Posted by: Guest on September-08-2020
-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