Tag Archives: Git refusing to merge unrelated histories

Solving git reusing to merge unrelated histories

How is 618 sales champion made?Uncover the secret of e-commerce’s “invigorating” hundreds of millions of sales data>>>

Today, the newly created repo, on the code cloud will be associated with the local repo, and the pull operation will result in an error similar to the following:

fatal: refusing to merge unrelated histories

After git 2.9.0, the default behavior does not allow merging branches without common ancestor

You need to add the -- allow unrelated histories option to perform the pull operation to avoid such error messages

Take notes

git pull origin master --allow-unrelated-histories

Occupy35814;met stackoverflowopposite 357700

https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories