Created
August 15, 2018 12:32
-
-
Save akshaymankar/ca5121b5688ab98e0efedb597da0f496 to your computer and use it in GitHub Desktop.
Merge two repositories
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
git checkout git@github.com:akshaymankar/repo-1 | |
cd repo-1 | |
git remote add repo-2 git@github.com:akshaymankar/repo-2 | |
git fetch repo-2 | |
git merge repo-2/master --allow-unrelated-histories | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment