zoukankan      html  css  js  c++  java
  • GIt -- fatal: refusing to merge unrelated histories 问题处理

     今晚碰到这个问题-- fatal: refusing to merge unrelated histories 

    想了一下,为什么就这样了?

    因为我是先本地创建了仓库,并添加了文件,然后再到github网上建仓库,项目名称一样的,这样一来当我想关联远程仓库,提交代码就报错了

    解决方法

    $ git pull origin master --allow-unrelated-histories

     --allow-unrelated-histories 参数的意思是合并仓库的时候,允许不相关的历史的提交内容

  • 相关阅读:
    1370
    1336
    1298
    1289
    Buy Tickets(poj2828)
    The Balance(poj2142)
    1067
    Lightoj1011
    1319
    Back to Underworld(lightoj 1009)
  • 原文地址:https://www.cnblogs.com/smallyi/p/9393456.html
Copyright © 2011-2022 走看看