Skip to content

Instantly share code, notes, and snippets.

View sepidetari's full-sized avatar

sepidetari

  • Germany
View GitHub Profile
@sepidetari
sepidetari / gist:bf2e10f7132ca0ae951df2a7b6ebc2d8
Created October 10, 2018 19:01 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

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

2. Add remote from original repository in 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