git diff [branchA] [branchB]
用以上这个命令可输出两个分支的区别,但是不同的文件太多,在命令行查看不是很方便,想输出到文件中查看,不知道如何加参数?
===================================
补充:找到答案:
// >> 后加输出文件的路径、文件名和后缀名
git diff [branchA] [branchB] >>d:/diff/exportname.diff
天蓬老师2017-05-02 09:33:44
linux的重定向命令
覆盖 git diff [branchA] [branchB] > a.txt
追加 git diff [branchA] [branchB] >> a.txt