-
-
Save jamiejohnsonkc/797a6912879edf9dec8e210d806fdd21 to your computer and use it in GitHub Desktop.
git merge two repos with conflicting repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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