mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 01:50:27 +00:00
Update cheatsheets
This commit is contained in:
17
tldr/diff-so-fancy
Normal file
17
tldr/diff-so-fancy
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
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"`
|
||||
Reference in New Issue
Block a user