Answers for "undo last commit not pushed on git"

3

cancel a commit not pushed

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

git undo pushed commit

git reset <previous label or sha1>
git commit -am "commit message"
git push -f <remote-name> <branch-name>  //  git push -f origin master
Posted by: Guest on March-06-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language