Skip to content

Instantly share code, notes, and snippets.

@azizkhani
Created November 19, 2020 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizkhani/6f7b8db70a8208933227b2e676db7dc6 to your computer and use it in GitHub Desktop.
Save azizkhani/6f7b8db70a8208933227b2e676db7dc6 to your computer and use it in GitHub Desktop.
merge-two-repository
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
@azizkhani
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment