Answers for "uncommit a pushed commit"

3

cancel a commit not pushed

git reset --soft HEAD~
Posted by: Guest on November-03-2020
0

git remove last pushed commit

git reset --hard 'xxxxx'

git clean -f -d

git push -f
Posted by: Guest on November-23-2021
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 "uncommit a pushed commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language