Answers for "delete the recent commit in git"

-1

remove last commit git

git reset --hard HEAD^
git push origin -f
Posted by: Guest on October-01-2020
0

git delete last commit

git reset --hard <sha1-commit-id>
Posted by: Guest on November-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language