Answers for "delete last commit pushed to github"

1

git delete last commit after push

git reset --hard HEAD~1
git push -f <remote> <branch>
Posted by: Guest on April-21-2021
0

delete a pushed commit

# delete the last commit
$git reset –hard HEAD~
Posted by: Guest on October-20-2020
3

github undo last pushed commit

git reset <previous label or sha1>
git commit -am "blabla"
git push -f <remote-name> <branch-name>
Posted by: Guest on January-12-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language