Git refusing to merge unrelated histories on rebase

后端 未结 23 2733
旧巷少年郎
旧巷少年郎 2020-11-22 08:30

During git rebase origin/development the following error message is shown from Git:

fatal: refusing to merge unrelated histories
Error redoing m         


        
23条回答
  •  借酒劲吻你
    2020-11-22 09:05

    For this, enter the command:

    git pull origin branchname --allow-unrelated-histories
    

    For example,

    git pull origin master --allow-unrelated-histories
    

    Reference:

    GitHub unrelated histories issue

提交回复
热议问题