I have two repositories A.git and B.git. They are completely separate (do not share any common ancestor).
Now I can merge changes from a branch in A.git to a branch in B.git by adding A.git as a remote on B.git. E.g. from B.git:
git add remote a_remote [URL to B.git]
git fetch a_remote
git merge a_remote/[branch from A.git]
As a result I will not get two separate roots in B.git.
I just tried to do this on two different repositories of a fairly large size (the two repositories have some files in common) and got tons of conflicts.
If putting aside the best practices discussion here what is actually causing all these conflicts?
And what consequences does it have when a repository have two unrelated roots?