Skip to content

Instantly share code, notes, and snippets.

@umair-me
Created July 3, 2019 14:01
Show Gist options
  • Save umair-me/fceeaa222558547c2bff9b587d31d46a to your computer and use it in GitHub Desktop.
Save umair-me/fceeaa222558547c2bff9b587d31d46a to your computer and use it in GitHub Desktop.
GIT merge one repo to another
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