Created
November 19, 2020 12:38
-
-
Save azizkhani/6f7b8db70a8208933227b2e676db7dc6 to your computer and use it in GitHub Desktop.
merge-two-repository
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 clone https://gitlab.com/open-projects-group/projects/enhancement/mono-repo | |
git remote add -f media-Information-service https://gitlab.com/open-projects-group/projects/enhancement/media-Information-service.git | |
git merge -s ours --allow-unrelated-histories --no-commit media-Information-service/master | |
git read-tree --prefix=media-Information-service/ -u media-Information-service/master | |
git commit -m "Merge media-Information-service project as our subdirectory" | |
git pull -s subtree media-Information-service master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://nuclearsquid.com/writings/subtree-merging-and-you/