Answers for "git command to undo push"

1

git reverse last push

git reset --hard <revision_id_of_last_known_good_commit>
git push --force
Posted by: Guest on July-28-2021
0

git how to undo a pushed commit

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

undo git commit after push

git reset <hash> # Run this then merge, commit, and push
Posted by: Guest on February-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language