查看两个分支之间的差异

显示两个分支之间的差异。

  • 使用 git diff <branch>..<other-branch> 查看 <branch><other-branch> 之间的差异。
git diff <branch>..<other-branch>

# 示例
git diff patch-1..patch-2
# 显示分支 `patch-1` 和 `patch-2` 之间的差异