$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
# local git reset <commit-hash> # or git reset --hard <commit-hash> # remote git push -f origin master