Sometimes it is necessary to combine 2 different Git repositories with preservation of both histories. In this example I assume that we only have one active branch (master) around that none of the files are duplicates.
git remote add <tmp name of 2nd repo> <URL of second repo>
git pull <tmp name of 2nd repo> master --allow-unrelated-histories
git mv
git remote rm <tmp name of 2nd repo>