Coloured Git diff to HTML

前端 未结 7 600
盖世英雄少女心
盖世英雄少女心 2020-11-28 19:19

I enjoy using git diff --color-words to clearly see the words that have changed in a file:

\"Screen

7条回答
  •  盖世英雄少女心
    2020-11-28 19:20

    If you want to see clean diffs with line similarity matching, better word comparison, syntax highlight and more check out diff2html which is very customizable git diff to HTML presenter.

    To use it on the command line you can check diff2html-cli which is a simple CLI written in Node.js.

    So you can share your diffs with colleagues it integrates with diffy.org.

    Check out a diff sample here.

提交回复
热议问题