Getting the difference between two repositories

后端 未结 11 1225
梦如初夏
梦如初夏 2020-11-30 16:33

How can we get the difference between two git repositories?

The scenario: We have a repo_a and repo_b. The latter was created as a copy of repo_a. There have been pa

11条回答
  •  半阙折子戏
    2020-11-30 17:22

    Once you have both branches in one repository you can do a git diff. And getting them in one repository is as easy as

    git fetch /the/other/repo/.git refs/heads/*:refs/remotes/other/*
    

提交回复
热议问题