sh git diff分支比较

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh git diff分支比较相关的知识,希望对你有一定的参考价值。



# git diff branches
# https://git-scm.com/docs/git-merge-base

# compare branches
git diff master # while on branch
git diff master..branch

# compare branch since `merge-base`, which is a earliest commit you may find on both branches
git diff master...branch || git diff `git merge-base master branch`..branch


# only files modified, commit msgs
git diff --name-status master..branch
git shortlog master..branch

以上是关于sh git diff分支比较的主要内容,如果未能解决你的问题,请参考以下文章

git 对比两个分支差异

git diff

git diff 简单用法

sh 将本地分支git log与远程分支进行比较

sh 将本地分支git log与远程分支进行比较

sh 使用Beyond Compare比较2个Git分支