git reset remote

Shell
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>

# remote
git push -f origin master
Source

Also in Shell: