Let\'s say I have two different repositories like so:
Project 1:
Init---A---B---C---HEAD1
Project 2:
Init---D---E---F---G---HEAD2
Is there a w
The solution I used was as follows:
In Project 2:
git format-patch --stdout > /path/to/patch.diff
Where refers to the first commit in the "from" repository you wish to merge to the "target".
In Project 1:
git am /path/to/patch.diff
This replays every commit from to HEAD in Project 2 onto Project 1.
This completely avoids the need for a common ancestor between the projects, as most git-specific tools require.