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