git reverted remote maste with local old 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>