Answers for "how to revert changes pushed in git and commit again"

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 "TypeScript"

Browse Popular Code Answers by Language