Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orlandster/c1cf4975e4c7f766905b4d1bab5382b8 to your computer and use it in GitHub Desktop.
Save Orlandster/c1cf4975e4c7f766905b4d1bab5382b8 to your computer and use it in GitHub Desktop.
Git: Merge with other repository
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