How do you merge two Git repositories?

后端 未结 23 3253
耶瑟儿~
耶瑟儿~ 2020-11-21 05:45

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 projec

23条回答
  •  借酒劲吻你
    2020-11-21 06:17

    Given command is the best possible solution I suggest.

    git subtree add --prefix=MY_PROJECT git://github.com/project/my_project.git master
    

提交回复
热议问题