Last active
August 29, 2015 13:56
-
-
Save lanrion/9320326 to your computer and use it in GitHub Desktop.
fork 了某个开源项目,发了PR后,需要更新master的代码的做法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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