Skip to content

Instantly share code, notes, and snippets.

@shenmao1989
Created August 16, 2012 06:17
Show Gist options
  • Save shenmao1989/3367244 to your computer and use it in GitHub Desktop.
Save shenmao1989/3367244 to your computer and use it in GitHub Desktop.
github fork new
假设你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