revert git commit after push locally code example Example: undo git commit after push git reset <hash> # Run this then merge, commit, and push