Git比较两个分支

{{ time }}

只显示变动的文件,指定如下

git diff branch1 branch2 --stat

比较两个分支的详细差异,指令如下

git diff branch1 branch2 > diff.txt

然后diff.txt就是详细差异的内容