Created
July 27, 2018 12:43
-
-
Save Orlandster/38b54962ba49e769add0b6330ca1d4dc to your computer and use it in GitHub Desktop.
Git: merge branch from different 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
mkdir joinSamples | |
cd joinSamples | |
git init | |
git remote add sample1 git.yourserver.local/sample1.git | |
git remote add sample2 git.yourserver.local/sample2.git | |
git fetch sample1 | |
git fetch sample2 | |
git branch sample1_master sample1/master | |
git branch sample2_master sample2/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment