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 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.
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 Ubuntu: ships git-delta 0.18.2 in 26.04, 0.16.5 in 24.04 and none in 22.04, each frozen for the life of its 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
- ✅ Three Architectures: amd64, arm64 and armhf on Ubuntu 22.04, 24.04, 25.10, 26.04 and 26.10; there is no i386, ppc64el, s390x or riscv64 build
- ✅ Multi-Distribution: works on Ubuntu 22.04, 24.04, 25.10, 26.04 and 26.10
- ✅ Easy Maintenance: standard apt commands for updates
📦 Package Build Repository
The Ubuntu 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!