Git refusing to merge unrelated histories on rebase

后端 未结 23 2638
旧巷少年郎
旧巷少年郎 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 08:53

    git pull origin  --allow-unrelated-histories
    

    You will be routed to a Vim edit window:

    • Insert commit message
    • Then press Esc (to exit "Insert" mode), then : (colon), then x (small "x") and finally hit Enter to get out of Vim
    • git push --set-upstream origin

提交回复
热议问题