git-delta
Back to Development
git-deltaBeginner7 min

git-delta: Beautiful Syntax-Highlighted Diffs in Your Terminal

Why git-delta?

Replace plain text git diffs with colorful, syntax-highlighted, side-by-side diffs. Configure delta for line numbers, word-level diffs, and hyperlinks.

git-delta renders diffs with syntax highlighting, line numbers, and side-by-side comparison. It replaces Git's default pager with something you actually want to read.

By the end of this 7 min guide, you'll have a working git-delta setup and practical git-delta workflows you can use immediately.

Installation & Git Config

Install git-delta:

brew install git-delta
Tip: Verify the installation with delta --version or delta -V after installing.

Syntax Themes & Side-by-Side

Add delta to your .gitconfig as the pager. The config options control side-by-side, line numbers, and theme — all customizable per repo.

Here's a foundational configuration to start with:

# .gitconfig
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
side-by-side = true
line-numbers = true

Line Numbers & Hunk Headers

With git-delta configured, these git-delta-specific workflows will save you time every day:

Pro tip: Don't try to adopt everything at once. Start with Syntax-highlighted diffs in terminal and add more as it becomes habit.

Interactive Diff Review

Once you're comfortable with git-delta basics, these advanced techniques will transform your git-delta workflow:

Rendering & Encoding Issues

Here are the most common git-delta issues and how to fix them:

Diff Perfection

Congratulations — you now have a solid git-delta foundation. Here's where to go next:

← PreviousGitHub CLI Workflow: Pull Requests, Issues, and Actions from TerminalNext →Obsidian Templates & Templater: Automate Your Daily Notes