Ahmad Awais

NAVIGATE


SHARE


Quick Tip: Update an outdated fork on GitHub with a click

Ahmad AwaisAhmad Awais

Developers fork repositories and forget about them. I mean until they need it again. But git’s moved on by then — your fork is probably suffering the same fate which is why you’re reading this. How should I update an outdated fork?

Before today you had to do the following:

git remote add upstream <clone-url>
git fetch upstream
git checkout master
git reset --hard upstream/master
git push --force origin master

Well, worry no more. You don’t have to do any of that since today!

Here’s how to update an outdated fork in 2021 …#

  1. Go to your GitHub fork repo on GitHub
  2. Find the Fetch upstream button/menu
  3. Click Fetch and merge — and we’re done

How to Update an Outdated Fork on GitHub With a Single Click

Thank you, GitHub for this one. Super useful.

Thoughts? Discuss on this tweet below ↓

Founder & CEO of ⌘ Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory · Creator of Command.new.

"Awais is an awesome example for developers" — Satya Nadella, CEO of Microsoft.

NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel.

Ex VP Eng (DevTools & DevRel) Rapid · Google Developers Advisory Board (gDAB) founding member · AI/ML/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) ❯ AI/ML Advisory Board San Francisco, DevNetwork.

Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli.

Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs.

❯ Read more about Ahmad Awais or come say hi on 𝕏 @_AhmadAwais.

📨

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

✨ 172,438 Developers Already Subscribed
Comments 0
There are currently no comments.