Last active
February 1, 2019 00:18
-
-
Save eduardobc88/7742cfbda75b7f8b85dd5129dcc93ad3 to your computer and use it in GitHub Desktop.
Merge a repository into the other repository
This file contains hidden or 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
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 --squash # 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