被fork的项目B<-你fork项目B产生的项目A<-别人fork你的项目B产生的项目C
作为中间人,需要保持你fork的项目最新的同时,还需要保持你本地的项目与你产生的远程项目同步

对(B)fork来的项目A继续进行fork合作

  1. 新建一个上游标准仓库A
    $ git remote add upstream2 https://github.com/A/A.git
  2. 将代码推送到A的github仓库.(-u为首次操作需要加)
    $ git push
    若你的仓库A未出现变化 ,跳至4
    若你的仓库A出现变化,会导致
To https://gitee.com/furfur-jiang/lightfowl.git! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/furfur-jiang/lightfowl.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

需要先更新你的本地和你的远程仓库,此时你的本地仓库最新,然后再更新你的本地和你所fork的仓库,提交pr
具体操作:

  1. 新建分支 git checkout -b myupstream
    拉取你的远程 git pull myupstream master
    切换回master分支合并最新分支的东西
    git checkout master
    git merge myupstream/master

  2. 新建分支 git checkout -b upstream
    拉取你的远程 git pull upstream master
    切换回master分支合并最新分支的东西
    git checkout master
    git merge upstream/master

提交
git push

更详细fork操作:对应fork来的项目进行修改操作

error: failed to push some refs to ‘xx.git‘ hint: Updates were rejected because the tip of your curr相关推荐

  1. error:failed to push some refs to ‘ssh://git.....‘

    原因:他人提交代码后,你没有更新代码,就提交代码并git push了.请先:git pull后:git push再:git push origin master

  2. hint: Updates were rejected because the tip of your current branch is behind(git push线上与本地版本冲突问题)

    Git本地代码推送到线上出现的问题 错误信息为: error: failed to push some refs to 'http://**:**/**/**.git' hint: Updates w ...

  3. Git出现 [rejected] master -> master (fetch first) error: failed to push some refs to解决方法

    目录 在git add以及commit之后 通过push的时候 出现如下问题 PS D:\项目\manongyanjiuseng> git push origin master To ssh:/ ...

  4. Git 技术篇 - 同步代码到github失败,提示non-fast-forward、error: failed to push some refs to问题解决方法,git pull的用法

    因为 github 上仓库里删过一些内容,导致本地的仓库和 github 里的对不上了. 此时用 git push 操作就会报 non-fast-forward,error: failed to pu ...

  5. error: failed to push some refs to ‘github.com:English.git‘ hint: Updates w

    问题描述: error: failed to push some refs to 'github.com:1qiqiqi/learing-Speaking-English.git' hint: Upd ...

  6. Git提交数据失败 error: failed to push some refs to 'https://github.com/XXXXXXX/gif.git'

    附载码云的使用教程地址:http://www.jianshu.com/p/084e0aabbab3 问题一:执行Git remote add origin https://github.com/XXX ...

  7. git报错:error: failed to push some refs to ... 的解决办法及如何让线上覆盖本地方法【Git/SVN】

    报错代码 在 push 的时候,出现如下错误: error: failed to push some refs to 'ssh://git@git.umbrella.com:1024/test-pow ...

  8. 解决github :error: failed to push some refs to 问题

    ** 错误代码报告如下 ** To git@github.com:Fu4ng/Cpp.git! [rejected] master -> master (non-fast-forward) er ...

  9. 解决办法:git错误 error: failed to push some refs to 'https://github.com/...

    问题描述: 今天在git bash中键入 $ git push origin master 进行提交的时候出现出现了 如下错误: ! [rejected] master -> master (n ...

最新文章

  1. 机器人视觉——使用numpy进行像素的处理 || 获取图像的属性 || 感兴趣区域ROI || 通道的拆分与合并
  2. 冒泡排序选择排序插入排序
  3. loadView加载(变换成ScrollView)
  4. 设计模式学习-每日一记(1.简单工厂模式)
  5. chackbox的值 php获取_PHP操作Redis数据库常用方法
  6. 20165218 《网络对抗技术》Exp0 Kali安装 Week1
  7. AV_PIX_FMT_YUV420P12LE’在此作用域中尚未声明
  8. 简单通俗理解MRF马尔可夫随机场
  9. linux通过top和iostat查找io性能瓶颈
  10. 网站优化中SEO关键词密度到底多少属于合理?
  11. 130 个相见恨晚的超实用网站,一次性分享出来。
  12. vb.net 拓展教程目录
  13. 基于51单片机的四位共阴数码管秒表proteus仿真
  14. 如何获取微信小程序包
  15. 西瓜书(周志华)课后习题答案
  16. 思科ACS5.8最新搭建教程-亲测可用
  17. 粒子摇摆 shader
  18. SRCK5 SR3LC SR3YZ SREJP SR3L8
  19. 数模国赛latex论文模板,直接往里套内容就行了
  20. 22春天津大学《钢结构设计原理》在线作业2

热门文章

  1. godot mysql_Go 每日一库之 godotenv
  2. [推荐]微软推出MSE 2010 Beta中文版 穆穆-movno1
  3. sed搜索某行在行末追加_sed在行首或者行尾添加内容
  4. TI芯片TMS320DM642开发
  5. LeetCode/LintCode 题解丨一周爆刷双指针:神奇字符串
  6. 水星怎么设置网速最快_水星mw300r怎么提高网速
  7. 如何使用谷歌浏览器远程调试安卓/ios真机H5应用?
  8. CTFshow_萌新(密码)
  9. 费雪方程式和交易量公式
  10. Confluence使用教程