How to keep your forked GitHub repository up to date

github logo Originally published at on ・1 min read

1. Clone your fork:

git clone

2. Add remote from original repository to your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream

3. Updating your fork from original repo to keep up with their changes:

git pull upstream master

Source: this gist

twitter logo DISCUSS
Classic DEV Post from Mar 24

Learning React, GraphQL, and Apollo?

How to build a URL shortener with React, GraphQL and Apollo

Wincent Balin profile image
I have many interests, mostly where computer science or IT meets music or humanities.

Sore eyes? now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️