how to reset remote by one latest commit code example
Example 1: git reset branch
git fetch origin
git reset --hard origin/branch_name
Example 2: git reset remote
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master