reset branch to origin head code example
Example 1: git reset hard for remote
git reset --hard <commit-hash>
git push -f origin master # only works for unprotected branches that allow force push
Example 2: git reset remote origin
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git