How do you merge two Git repositories?

后端 未结 23 4031
耶瑟儿~
耶瑟儿~ 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:08

    https://github.com/hraban/tomono as another mention of a script-based solution.

    I am not the author but used it and it does the job.

    One positive aspect is that you get all the branches and all the history into the final repo. For my repos (no duplicate folders in repos - actually, they came out of tfs2git migration) there were no conflicts and everything ran automated.

    It is mainly used (see name) to create monorepos.

    For Windows users: git bash can execute the .sh file. It comes with the standard git installation.

提交回复
热议问题