解决方法是:允许其合并历史。只需要在分支名后加上:--allow-unrelated-histories  即可(注意是两个中划线);

如下:

git merge branchName --allow-unrelated-histories 

 

查看原文:http://qdblogs.com/?id=10

相关文章:

  • 2021-10-19
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-06-14
  • 2021-10-12
  • 2021-06-05
  • 2021-11-14
相关资源
相似解决方案