git diff branch_1..branch_2
That will produce the diff between the tips of the two branches.
(这将产生两个分支的尖端之间的差异。)
If you'd prefer to find the diff from their common ancestor to test, you can use three dots instead of two: (如果您希望从他们的共同祖先中找到差异进行测试,您可以使用三个点而不是两个点:)
git diff branch_1...branch_2
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…