git how to revert commit after push code example
Example 1: undo git commit after push
git reset <hash> # Run this then merge, commit, and push
Example 2: git how to undo a pushed commit
git revert <commit_hash>
git reset <hash> # Run this then merge, commit, and push
git revert <commit_hash>