Help Center/ CodeArts Repo/ FAQs/ Troubleshooting/ Message "fatal: refusing to merge unrelated histories" Is Displayed
Updated on 2022-07-22 GMT+08:00

Message "fatal: refusing to merge unrelated histories" Is Displayed

Symptom

The message refusing to merge unrelated histories is displayed after git pull is executed.

Analysis

The objects of the merge attempt are two unrelated repositories or branches.

Solution

Run git pull origin master --allow-unrelated-histories for force merge.