Git unrelated-histories Git refused to merge two projects because they do not share a common ancestor commit.
Reviewed for reference consistency: April 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
This is a safety feature introduced in Git 2.9. It stops developers from accidentally merging the wrong project URL.
If the merge is truly intentional, Git requires an explicit override because this state looks very similar to pointing at the wrong repository by accident.
Underlying Causes
Frequently Asked Questions
Because unrelated histories look very similar to selecting the wrong repository or connecting two projects that were never meant to share a timeline.