Merge two repositories git remote add RepoA FolderToRepoA git fetch RepoA git merge --allow-unrelated-histories RepoA/master `