Getting the difference between two repositories

后端 未结 11 1198
梦如初夏
梦如初夏 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:17

    An easy way to do that without touching your remotes config. From repo A, in master (assume you want to compare master branches):

    git fetch path/to/repo_b.git master
    git diff FETCH_HEAD
    

提交回复
热议问题