Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Last active February 23, 2019 15:39
Show Gist options
  • Save jamiejohnsonkc/797a6912879edf9dec8e210d806fdd21 to your computer and use it in GitHub Desktop.
Save jamiejohnsonkc/797a6912879edf9dec8e210d806fdd21 to your computer and use it in GitHub Desktop.
git merge two repos with conflicting repos
--in original repo "a"
git remote add -f b "path/to/repo_b.git" [use github clone url for path]
git remote update
git diff master remotes/b/master
[resolve any merge conflicts - see related gist]
git merge -S --allow-unrelated-histories old-project/master
git remote rm b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment