How to get diff working like git-diff?

前端 未结 14 2229
慢半拍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:07

    Use colordiff:

    Installation:

    sudo apt-get install colordiff
    

    Usage:

    colordiff -u file_one file_two
    

    Gives exactly same difference as shown by git diff.

提交回复
热议问题