Skip to content

Instantly share code, notes, and snippets.

View wbyu's full-sized avatar

Wen-Bin Yu wbyu

  • Xishuangbanna Tropical Botanical Garden, Chinese Academy of Sciences
  • Mengla
View GitHub Profile
@wbyu
wbyu / gist:3338e0b08edb57a86bf9cb51c07e0351
Created March 14, 2018 04:17 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]: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