What is delta?
delta is a syntax-highlighting pager for git, diff, grep and blame output. Set it as git's pager once and every git diff, git show, git log -p, git blame and git add -p comes out with the code highlighted the way your editor shows it, the changed words marked inside each changed line, optional side-by-side columns and line numbers, and file headers you can jump between with n and N. It also reads any unified diff, compares two files directly and highlights ripgrep's JSON output. It is written in Rust by Dan Davison, uses the same syntax definitions and colour themes as bat, is configured from your ~/.gitconfig, and is MIT licensed. The package is called git-delta; the command it installs is delta.
git-delta, so apt install git-delta and apt upgrade give you the current release instead of the archive's.
⚡ Key Features of delta
🎨 Syntax Highlighting
Code inside a diff is highlighted the way your editor shows it, with the syntax definitions and colour themes bat uses. Pick one with syntax-theme, or let delta follow the terminal's light or dark background.
🔍 Word-Level Changes
Inside each changed line delta marks the exact words that differ, so a renamed variable or a flipped condition stands out instead of hiding in two nearly identical red and green lines.
↔️ Side-by-Side View
side-by-side = true puts the old and new versions in two columns with line numbers, wrapping long lines instead of cutting them off. Try it for one command with git -c delta.side-by-side=true diff.
🧭 Navigation and Links
With navigate = true, n and N jump from file to file through a long git log -p. With hyperlinks = true, file paths and commit hashes become clickable in terminals that support it.
🧩 Blame, Grep and Conflicts
git blame gets highlighted code with the commit details grouped, git grep and rg --json results are highlighted and grouped by file, and conflicted files during a merge are shown as readable diffs.
⚙️ Lives in ~/.gitconfig
Every option sits in a [delta] section of your git config, and named feature sets switch a whole look at once. The package ships upstream's themes.gitconfig, a collection of ready-made themes.
apt upgrade keeps you on the latest version.
📦 Installation from deb.griffo.io
Step 1: Add Repository
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(. /etc/os-release; echo ${DEBIAN_CODENAME:-${UBUNTU_CODENAME:-$VERSION_CODENAME}}) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt updateinstall -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(. /etc/os-release; echo ${DEBIAN_CODENAME:-${UBUNTU_CODENAME:-$VERSION_CODENAME}}) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt updatesudo apt install extrepo
sudo extrepo enable griffo
sudo apt update🆓 There is an always-free mirror. deb-free.griffo.io serves packages free forever, no account, no subscription, at most 2 months behind upstream, security fixes immediately. It currently carries cliamp, Forgejo Runner, Ghostty, lazydocker, Oh My Posh, Uncloud and Zed; delta is not one of them, so the repository above is the only way to get it today, ask and it can be enrolled.
🧩 About the extrepo option. extrepo is Debian's own tool for external repositories: it writes the sources file and installs the signing key for you, checking the key against signed metadata first. This repository is registered with it as griffo, and the always-free mirror as griffo-free, so on Debian (bookworm, trixie, forky and sid) the commands above are the whole setup.
extrepo sets up the sources file and the key only, so a subscription's credentials still go in /etc/apt/auth.conf.d/deb.griffo.io.conf. Ubuntu is not covered, because extrepo publishes metadata for Debian suites only: there, use the sudo or root commands.
Step 2: Install delta
# Install latest delta: the package is git-delta, the command is delta
sudo apt install git-delta
# Verify installation
delta --version# Install latest delta: the package is git-delta, the command is delta
apt install git-delta
# Verify installation
delta --versionStep 3: First run
# Make delta git's pager: diff, show, log -p, blame and grep go through it
git config --global core.pager delta
# git add -p with the same highlighting
git config --global interactive.diffFilter 'delta --color-only'
# n and N jump between files
git config --global delta.navigate true
# Conflicts show the common ancestor too
git config --global merge.conflictStyle zdiff3
# Try it
git diff🎯 Basic Usage Examples
Reading diffs:
# Side by side, for one command
git -c delta.side-by-side=true diff
# Or always, with line numbers
git config --global delta.side-by-side true
git config --global delta.line-numbers true
# Walk through history; n and N jump between files
git log -p
# Stage hunks with highlighting
git add -pBeyond git diff:
# Compare two files directly
delta old.conf new.conf
# Any unified diff
diff -u a.txt b.txt | delta
# ripgrep matches, highlighted and grouped by file
rg --json -C 2 'TODO' | delta
# git blame and git grep go through delta too
git blame src/main.rs
git grep -n 'TODO'Themes and configuration:
# Preview every syntax theme on a real diff
git show | delta --show-syntax-themes
# Load the delta themes the package ships and preview them
git config --global --add include.path /etc/delta/themes.gitconfig
git show | delta --show-themes
# Use one of them
git config --global delta.features mellow-barbet
# The configuration delta actually ends up with
delta --show-config🔧 Tool Integrations
delta is a filter between git and your pager, so most of the integration happens in your git config and your terminal:
- git:
core.pager deltacoversdiff,show,log -p,stash show -p,blameandgrep;interactive.diffFilterneeds--color-only, because git expects one line back for every line of the hunk - less: delta pages its output through
less, which the package recommends; without it delta prints straight to the terminal.DELTA_PAGERordelta.pagerpicks another pager, and--paging=neverturns paging off - lazygit: lazygit can render its diffs through delta; point its pager setting at
delta --dark --paging=never - difftastic: the two complement each other: delta as git's pager for everyday diffs, difftastic through
git difftoolwhen you want a diff by syntax tree - ripgrep:
rg --jsonpiped into delta gives highlighted, file-grouped search results in the same theme as your diffs - Your terminal: delta works out whether the background is light or dark, and
delta.darkordelta.lightfixes a wrong guess; kitty and Ghostty open the linkshyperlinks = trueproduces - Your shell: bash, zsh and fish completions for
deltacome with the package
🚀 Why Choose deb.griffo.io?
- Official Debian: ships git-delta 0.18.2 in trixie and none at all in Bookworm, frozen for the life of the release
- cargo install git-delta: a Rust toolchain and a few minutes of compiling, for a binary in
~/.cargo/binfor one user, without completions, rebuilt by hand for every release - Upstream downloads: a
.debor tarball from the GitHub releases page, current on the day you fetch it, and fetched again by hand for every release after that - deb.griffo.io: latest version with automatic updates
- ✅ Same Package Name as the Archives:
git-delta, exactly what Debian and Ubuntu call it, so a plainsudo apt install git-deltapicks this newer version andapt upgradereplaces an older archive copy in place - ✅ Package git-delta, Command delta: you install
git-deltaand rundelta. Two similar names are unrelated: the archive'sdeltapackage is a test-case reducer (multidelta, singledelta), and git-extras'git deltacommand lists files that differ from another branch - ✅ The Official Build: upstream's release binary at
/usr/bin/delta, unchanged, with bash, zsh and fish completions andthemes.gitconfigat/etc/delta/themes.gitconfig, where Debian's own package puts it; upstream ships no man page, sodelta --helpis the reference - ✅ Light Dependencies: recommends
gitandlessand needs neither to run: withoutless, delta simply prints its output unpaged - ✅ Automatic Updates: packages updated within hours of upstream releases
- ✅ Four Architectures: amd64, arm64 and armhf on Bookworm, Trixie, Forky and Sid; i386 on Trixie, Forky and Sid only, because upstream's i386 build needs glibc 2.39 and Bookworm has 2.36; there is no ppc64el, s390x or riscv64 build
- ✅ Multi-Distribution: works on Bookworm, Trixie, Forky and Sid
- ✅ Easy Maintenance: standard apt commands for updates
📦 Package Build Repository
The Debian packages are automatically built and maintained in this GitHub repository:
- 🔺 git-delta-debian - Latest release builds
🔗 Related Packages
Also available from deb.griffo.io:
- difftastic - A structural diff that compares by syntax tree, for
git difftoolnext to delta - lazygit - A terminal UI for git that can render its diffs through delta
- GitUI - Another keyboard-driven terminal UI for git
- ripgrep - Fast recursive search whose JSON output delta highlights
- Serie - A rich commit graph for the terminal
git log -p and git add -p, anyone whose distribution ships an old git-delta, and people who want git blame, git grep and ripgrep output highlighted too.
💝 Support This Project
If this repository saves you time and effort, please consider supporting it!