Skip to content

Instantly share code, notes, and snippets.

@ludwigschuster
Created December 27, 2016 23:16
Show Gist options
  • Save ludwigschuster/6f4f5ef33ab73606a74642a9518e43aa to your computer and use it in GitHub Desktop.
Save ludwigschuster/6f4f5ef33ab73606a74642a9518e43aa to your computer and use it in GitHub Desktop.
combining two repos
If you want to merge project-a into project-b:
cd path/to/project-b
git remote add project-a path/to/project-a
git fetch project-a
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment