Git subtree mergeEdit
Given other remote $OTHER and repo $REPO:
$ git remote add -f $OTHER $REPO
$ git merge -s ours --allow-unrelated-histories --no-commit $OTHER/master
$ git read-tree --prefix=$OTHER -u $OTHER/master
$ git commit -m "Merge $OTHER code into $OTHER directory"