티스토리 뷰

공부

[Git] merge repositories

승가비 2022. 6. 20. 00:38
728x90
cd path/to/project-b
git remote add project-a /path/to/project-a
git fetch project-a --tags
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a

https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories

 

How do you merge two Git repositories?

Consider the following scenario: I have developed a small experimental project A in its own Git repo. It has now matured, and I'd like A to be part of larger project B, which has its own big repos...

stackoverflow.com

 

728x90
댓글
댓글쓰기 폼