

Better git diff with delta
source link: https://pawelgrzybek.com/better-git-diff-with-delta/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Better git diff with delta
Published: 2024.02.25 · 1 minute read
After switching from Visual Studio Code to Helix a few months ago, I occasionally miss a side-by-side preview of changed files. I don’t find the output of git diff
readable. Despite the millions of ways you can configure this command, the ability to present changes next to each other is impossible. Luckily, I found delta, a diff pager for git
and grep
output written in Rust by Dan Davison.
Delta executables are available for most operating systems. The recommended way is to configure delta as your default git pager inside a .gitconfig
, so you don’t need to learn any new commands and change your workflow. Also, this CLI tool is wildly configurable. If interested, my config is publicly available on my dotfiles repository. I am attaching screenshots of the default git diff
and delta
output for comparison.

Ps. The avocado icon next to the file name is not the default. It is part of my config. Keep things fun!
Did you like it? Please share it with your friends or get me a
beer coffee. Thanks!
Leave a comment#
👆 you can use Markdown here
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK