In git, you can merge two branches that do not have a common base. However, this leads to creation of a new history for your project. In the event that the histories of the two branches are not the same, you will encounter an error that forbids merging unrelated histories. This article will show you how to fix this error.