GitHub Fetch Upstream Branch
source link: https://ardalis.com/github-fetch-upstream/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
GitHub Fetch Upstream Branch
Date Published: 11 May 2021
A couple of years ago, I wrote an article on how to use the git command line to sync a fork with its upstream branch. Now, you should need those instructions much less frequently, because GitHub has added support for it to its web application. You'll find it in the image below:
Once you click on the 'Fetch Upstream' button, there's a dialog to confirm:
Click the button and assuming no major conflicts, you should have your fork updated to the upstream branch, with a dialog at the top of your browser confirming as much:
Considering that doing this locally requires a bunch of git CLI commands that I typically have to look up every time, this is definitely a welcome addition to GitHub's web site.
Additional References
About Ardalis
Software Architect
Steve is an experienced software architect and trainer, focusing on code quality and Domain-Driven Design with .NET.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK