refusing to merge unrelated histories

这是因为远程仓库已经存在代码记录了,并且那部分代码没有和本地仓库进行关联,我们可以使用如下操作允许pull未关联的远程仓库旧代码:

git pull origin master --allow-unrelated-histories

然后我们可以push代码了



作者:Asher六尘
链接:https://www.jianshu.com/p/1b696ab39bb1
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

相关文章:

  • 2021-10-21
  • 2021-07-26
  • 2021-08-29
  • 2022-12-23
  • 2021-12-11
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-05-10
  • 2021-10-15
  • 2021-08-15
相关资源
相似解决方案