Merging separate git repositories

How to merge separate git repositories

create new repo 

git init 

create readme 

dir > readme.txt 

add and commit readme 

git add . 

git commit -m "initial commit" 

pull in repo 

git remote add -f <repo> <repo url> 

merge repos 

git merge <repo>/master --allow-unrelated-histories 

move files to their own folder (if needed) then commit 

git add . 

git remote add <repo> <repo url> 

git commit 

git push