Importing one git repo as a branch into another git repo

前端 未结 3 679
予麋鹿
予麋鹿 2021-02-01 21:20

For historic reason we have source code for different version in different git repositories. So while Project A holds the version X of the source Project B holds version Y of th

3条回答
  •  温柔的废话
    2021-02-01 21:44

    This is simple with Git. You have to add project B as remote, then fetch:

    git remote add projectB git://url.to/projectB.git
    git fetch projectB
    

提交回复
热议问题