Answers for "how do i revert a commit locally in git"

41

revert local commit git bash

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
0

how to undo local commit git

If your commits are only LOCAL, 
you can git reset --hard origin/<branch_name> 
to move back to where the origin is.
Posted by: Guest on October-31-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language