At this point in time, there's no way to do a git-reset
through the GitHub Web UI.
However, it's fairly easy to do on the command-line:
# 1. Add the Original repo as a remote to your local repository
git remote add upstream https://github.com/original/repo
# 2. Fetch all the objects from the Original repo
git fetch upstream
# 3. Reset your local `master` to point to the same commit as `master` on Original
git switch master
git reset --hard upstream/master
This is assuming that the branch you want to be identical to Original is master
. If not, simply substitute master
with the actual branch name.
Also, keep in mind that this will remove your own commits from the branch you're resetting. If you want to keep those around for later, simply create a branch that points to the latest of your own commits before you do the reset operation.
# Optional: Create a branch that points to your own commits before resetting `master`
git switch master
git branch my-own-commits