Skip to content

Instantly share code, notes, and snippets.

View sonbt56's full-sized avatar

Bùi Thanh Son sonbt56

View GitHub Profile
@sonbt56
sonbt56 / gist:b94b355d525bc98f6befdd2a82b165b9
Created November 29, 2017 04:24 — 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