Answers for "how to undo commit in git that has been pushed"

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
0

how to undo a commit sent that was pushed and keep local changes

git reset <previous label or sha1>
Posted by: Guest on August-01-2021

Code answers related to "how to undo commit in git that has been pushed"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language