Help Center/ CodeArts Repo/ FAQs/ Uploading and Downloading Code/ Message "fatal: refusing to merge unrelated histories" Is Displayed
Updated on 2024-11-14 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.