Skip to content

Instantly share code, notes, and snippets.

@darkthread
Forked from CristinaSolana/gist:1885435
Last active August 25, 2018 01:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save darkthread/ae3f31823fc975b1b90f13fbb073b893 to your computer and use it in GitHub Desktop.
Save darkthread/ae3f31823fc975b1b90f13fbb073b893 to your computer and use it in GitHub Desktop.
讓Fork與源頭保持同步

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

3. Updating your fork from original repo to keep up with their changes:

git pull upstream master

補充,若有SSL憑證問題,使用git config http.sslVerify false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment