2 ms·
I highly suggest delta[1] for viewing diffs on the command line. It pretty much replicates GitHub's diff rendering, and is quite configurable. [1]: https://git
by imiric 5y ago
I highly suggest delta[1] for viewing diffs on the command line. It pretty much replicates GitHub's diff rendering, and is quite configurable.
[1]: https://github.com/dandavison/delta https://github.com/dandavison/delta
- kevincox 5y agoI am very happy with delta. I slightly tweaked the default config and it is great. [core] pager = delta [interactive] diffFilter = delta --color-only [delta] features = navigate hunk-header-style = omit line-numbers = true line-numbers-left-format = "{nm:>3} " line-numbers-right-format = "{np:>3} " max-line-length = 0
- Liskni_si 5y agoThere's also diff-highlight[1] which is shipped with git itself and does almost the same thing, just possibly isn't as polished. [1]: https://github.com/git/git/tree/master/contrib/diff-highlight https://github.com/git/git/tree/master/contrib/diff-highligh...
- manexploitsman 5y agoTig - Text-mode interface for Git with basic vim bindings https://jonas.github.io/tig/ https://jonas.github.io/tig/