Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Git 中,我如何查看从 master 到 development 的差异?
我想看看两个分支不一样的一切
如这些 其他 答案中所述,您可以通过以下方式执行此操作git-diff:
git-diff
查看所有差异:
git diff master..develop
列出不同的文件:
git diff --name-status master..develop
git diff [branch1] [branch2]会为你做的。
git diff [branch1] [branch2]