git merge different repositories?

前端 未结 1 1070
灰色年华
灰色年华 2020-12-07 08:39

I\'ve been using SVN for all my projects. Sometimes project B is originating as a copy from project A. When project A has a generic change, I can use svn merge A

相关标签:
1条回答
  • 2020-12-07 08:51

    If you have two projects, proj1 and proj2 and want to merge changes of proj1 into proj2, you would do it like this:

    # in proj2:
    git remote add proj1 path/to/proj1
    git fetch proj1
    git merge proj1/master # or whichever branch you want to merge
    

    I believe this does the same thing as what you were doing with SVN.

    0 讨论(0)
提交回复
热议问题