Answers for "how to revert a local git to the last commit"

33

roll back last commit in git

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

git revert last commit

git revert HEAD
Posted by: Guest on April-12-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language