Skip to content

Instantly share code, notes, and snippets.

View s-z-z's full-sized avatar
😀

s-z-z

😀
  • Shenzhen, China
  • 06:14 (UTC +08:00)
View GitHub Profile
@s-z-z
s-z-z / gist:304d2896192e64fbb4438ce41b9991a3
Created July 27, 2018 08:23 — 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