Git 比较分支
示例
显示的尖端new与的尖端之间的变化original:
git diff original new # equivalent to original..new
显示上的所有更改new,因为它从支original:
git diff original...new # equivalent to $(git merge-base original new)..new
仅使用一个参数,例如
gitdiff原始
相当于
gitdiff原始的..HEAD
显示的尖端new与的尖端之间的变化original:
git diff original new # equivalent to original..new
显示上的所有更改new,因为它从支original:
git diff original...new # equivalent to $(git merge-base original new)..new
仅使用一个参数,例如
gitdiff原始
相当于
gitdiff原始的..HEAD