git remote revert to previous commit code example
Example: git reset remote
# local
git reset
# or
git reset --hard
# remote
git push -f origin master
# local
git reset
# or
git reset --hard
# remote
git push -f origin master