Files
cheatsheet-tldr/tldr/diff-so-fancy
2025-12-23 00:21:40 +00:00

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"`