Git refusing to merge unrelated histories on rebase

后端 未结 23 2360
旧巷少年郎
旧巷少年郎 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:03

    In my case, the error was just fatal: refusing to merge unrelated histories on every try, especially the first pull request after remotely adding a Git repository.

    Using the --allow-unrelated-histories flag worked with a pull request in this way:

    git pull origin branchname --allow-unrelated-histories
    

提交回复
热议问题