git revert commits and push to remote code example
Example 1: git reset remote
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master
Example 2: git how to undo a pushed commit
git revert <commit_hash>