Answers for "git rollback a commit before push"

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

git how to undo a pushed commit

git revert <commit_hash>
Posted by: Guest on December-02-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language