Starting in May 2014, it is possible to update a fork directly from GitHub. This still works as of September 2017, BUT it will lead to a dirty commit history.
- Open your fork on GitHub.
- Click on Pull Requests.
- Click on New Pull Request. By default, GitHub will compare the original with your fork, and there shouldn't be anything to compare if you didn't make any changes.
- Click switching the base if you see that link. Otherwise, manually set the base fork drop down to your fork, and the head fork to the upstream. Now GitHub will compare your fork with the original, and you should see all the latest changes.
- Create pull request and assign a predictable name to your pull request (e.g.,
Update from original
).
- Scroll down to Merge pull request, but don't click anything yet.
Now you have three options, but each will lead to a less-than-clean commit history.
- The default will create an ugly merge commit.
- If you click the dropdown and choose "Squash and merge", all intervening commits will be squashed into one. This is most often something you don't want.
- If you click Rebase and merge, all commits will be made "with" you, the original PRs will link to your PR, and GitHub will display
This branch is X commits ahead, Y commits behind
.
So yes, you can keep your repo updated with its upstream using the GitHub web UI, but doing so will sully your commit history. Stick to the command line instead - it's easy.