How to keep your forked GitHub repository up to date

github logo Originally published at ofdigitalwater.postach.io on ・1 min read

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

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

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.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?

dev.to now has dark mode.

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