github网上参与项目协作流程

帮助参考官方文档:https://help.github.com/articles/fork-a-repo

1.A账号登录github上,参与B账号的项目,在B账号网页上点fork
2.把项目clone到本地
  git clone https://github.com/A/xxx.git
3.添加上游远端GIT
  git remote add upstream https://github.com/B/xxx.git
  upstream可以随便取别名
4.取远端最新代码,保证自己的代码是最新,免得跟别人的有冲突
  git fetch upstream

5.合并到本地
  git merge upstream/master

6.更新远端自己的代码库(push Update remote refs along with associated objects)
  git push
7.登录自己的账号A,在上面点pull request
  https://github.com/A/xxx

原文地址:https://www.cnblogs.com/atyou/p/2953589.html