mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
486 B
Plaintext
18 lines
486 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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"`
|