[英]Git - Compare commits on different branches
Say we have the following branches: 假设我们有以下分支:
aaa --> bbb --> ccc --> ddd (HEAD) Branch A
eee --> fff --> ggg Branch B
Would it be possible to compare bbb (on Branch A) with eee (on Branch B)? 是否可以将bbb(在A分支上)与eee(在B分支上)进行比较?
The following compares the tip of the branches (afaik): 下面比较了分支的尖端(afaik):
git diff A..B
While the following compares commits on the same branch: 以下比较在同一分支上的提交:
git diff ddd..ccc
Would it be possible to merge these parameters? 可以合并这些参数吗?
Try with compare commit heads 尝试比较提交头
git diff head first branch head second branch git diff头第一分支头第二分支
git diff 0dae34e 769ffr330c
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.