git diff [branchA] [branchB]
用以上這個命令可輸出兩個分支的區別,但是不同的文件太多,在命令列查看不是很方便,想輸出到文件中查看,不知道如何加參數?
===================================補充:找出答案:
// >> 后加输出文件的路径、文件名和后缀名 git diff [branchA] [branchB] >>d:/diff/exportname.diff
人生最曼妙的风景,竟是内心的淡定与从容!
linux的重定向指令覆蓋 git diff [branchA] [branchB] > a.txt追加 git diff [branchA] [branchB] >> a.txt
git diff --color > foo.diff
foo.diff用notepad++/sublime 之類的編輯器打開,高亮顏色
linux的重定向指令
覆蓋 git diff [branchA] [branchB] > a.txt
追加 git diff [branchA] [branchB] >> a.txt
git diff --color > foo.diff
foo.diff用notepad++/sublime 之類的編輯器打開,高亮顏色