HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

diff-so-fancy — Colorize `diff` output in a more human readable way. More information: <https://github.com/so-fancy/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddiff-so-fancyclidiffmorecolorizehumanoutput

Problem

How to use the diff-so-fancy command: Colorize diff output in a more human readable way. More information: <https://github.com/so-fancy/diff-so-fancy#-usage>.

Solution

diff-so-fancy — Colorize diff output in a more human readable way. More information: <https://github.com/so-fancy/diff-so-fancy#-usage>.

Colorize diff:
diff {{[-u|--unified]}} {{path/to/file1}} {{path/to/file2}} | diff-so-fancy


Set diff-so-fancy to colorize the output during Git's interactive staging:
git config --global interactive.diffFilter "diff-so-fancy --patch"

Code Snippets

Colorize `diff`

diff {{[-u|--unified]}} {{path/to/file1}} {{path/to/file2}} | diff-so-fancy

Set `diff-so-fancy` to colorize the output during Git's interactive staging

git config --global interactive.diffFilter "diff-so-fancy --patch"

Context

tldr-pages: common/diff-so-fancy

Revisions (0)

No revisions yet.