区分两个存储库 [英] Getting the difference between two repositories

查看:104
本文介绍了区分两个存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



场景:
我们有一个repo_a和repo_b。后者是作为repo_a的副本创建的。之后两个版本库都有了并行的发展。有没有一种方法可以列出这两个版本库的当前版本的差异?

在解决方案

  git remote add -fb path / to / repo_b.git 
git remote update
git diff master remotes / b / master
git remote rm b


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 parallel development in both the repositories afterwards. Is there a way we can list the differences of the current versions of these two repositories?

解决方案

In repo_a:

git remote add -f b path/to/repo_b.git
git remote update
git diff master remotes/b/master
git remote rm b

这篇关于区分两个存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆