帮助参考官方文档: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

 

 

相关文章:

  • 2021-06-15
  • 2021-11-23
  • 2021-11-23
  • 2021-12-27
  • 2021-07-04
  • 2021-04-05
  • 2021-12-22
  • 2021-12-26
猜你喜欢
  • 2022-01-01
  • 2021-11-23
  • 2021-08-11
  • 2022-01-08
  • 2021-11-23
  • 2021-07-17
  • 2022-01-05
相关资源
相似解决方案