Skip to content

Instantly share code, notes, and snippets.

@lanrion
Last active August 29, 2015 13:56
Show Gist options
  • Save lanrion/9320326 to your computer and use it in GitHub Desktop.
Save lanrion/9320326 to your computer and use it in GitHub Desktop.
fork 了某个开源项目,发了PR后,需要更新master的代码的做法
fork 了某个开源项目,发了PR后,需要更新master的代码的做法:
git remote add --track master upstream git://github.com/upstreamname/projectname.git
git fetch upstream
git merge upstream/master
注意:upstream 是定义名称。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment