How to get diff working like git-diff?

前端 未结 14 2248
慢半拍i
慢半拍i 2020-12-12 10:42

I like the output formatting of git diff. The color and the +/- representation of changes between lines is easier to read than GNU di

14条回答
  •  情歌与酒
    2020-12-12 11:06

    I don't know how to do color but this will do the +/- rather than < and >.

    diff -u file1 file2
    

提交回复
热议问题