Article
home/blog/Loading

How to merge a branch in git with an unrelated history

You can merge a branch with a different history by adding the flag --allow-unrelated-histories

--allow-unrelated-histories example

git merge master --allow-unrelated-histories