Git refusing to merge unrelated histories on rebase

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

    For Android Studio and IntelliJ:

    First, commit everything and resolve any conflicts.

    Then open the terminal from below of IDE and enter:

    git pull origin master --allow-unrelated-histories
    

    Now you can push.

提交回复
热议问题