reset mainline code example
Example 1: git reset hard for remote
git reset --hard
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