Created
August 16, 2012 06:17
-
-
Save shenmao1989/3367244 to your computer and use it in GitHub Desktop.
github fork new
This file contains 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的项目原始地址是http://github.com/abc/rep.git, 你自己的是http://github.com/you/rep.git | |
$ git remote add upstream http://github.com/abc/rep.git # 你本地的origin应该跟了自己的remote,前且假设当前本地branch是master。 | |
$ git fetch upstream | |
$ git merge upstream/master # merge可能会有冲突,手工解决掉并commit | |
$ git push origin/master # push到你自己的fork上 | |
然后向原始项目提交一个pull request。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment