⚡ 72 developer tools, always updated, new upstream releases land in apt within hours. Join the Discord

🎁 The apt mirror needs a subscription. Plans start at €15 a year. See pricing · 🆓 There is an always-free mirror · 🔐 apt returning 401?

🔺 Install Latest delta (git-delta) on Ubuntu

A syntax-highlighting pager for git, diff, grep and blame output

Latest version: 0.22.0 · updated 2026-11-25
SourceVersion
deb.griffo.io0.22.0 ✅
Official Ubuntu0.18.2 🛑
← Back to home

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.

🚀 Why Latest Versions Matter: delta ships a few releases a year, with new options, better side-by-side wrapping and fixes for the many ways git, terminals and pagers interact. Ubuntu 26.04 is frozen at 0.18.2, 24.04 LTS at 0.16.5, and 22.04 has no git-delta at all, so options from the current manual may simply not exist in your copy. This repository uses the same package name, 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.

🚀 Always ahead of the official archives: Debian and Ubuntu freeze package versions when a release ships. This repository publishes new upstream releases typically within hours. A simple apt upgrade keeps you on the latest version.

📦 Installation from deb.griffo.io

Run the commands

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 update
install -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.

How the free mirror works →

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 --version

Step 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 -p

Beyond 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 delta covers diff, show, log -p, stash show -p, blame and grep; interactive.diffFilter needs --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_PAGER or delta.pager picks another pager, and --paging=never turns 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 difftool when you want a diff by syntax tree
  • ripgrep: rg --json piped 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.dark or delta.light fixes a wrong guess; kitty and Ghostty open the links hyperlinks = true produces
  • Your shell: bash, zsh and fish completions for delta come with the package

🚀 Why Choose deb.griffo.io?

📊 Repository Comparison:
  • 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/bin for one user, without completions, rebuilt by hand for every release
  • Upstream downloads: a .deb or 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

📦 Package Build Repository

The Ubuntu packages are automatically built and maintained in this GitHub repository:

🔗 Related Packages

Also available from deb.griffo.io:

🎯 Perfect for: developers who read diffs in a terminal all day, reviewers who want side-by-side views and word-level highlights in 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!

⭐ Star on GitHub 🐦 Share on Twitter

Just after the command? See apt install git-delta, one page covering Debian and Ubuntu.

📦 Recent releases from this repository

📚 Release-specific install guides

❓ Frequently asked questions

Is delta in the official Ubuntu repositories?

Yes, but the official Ubuntu archive ships delta 0.18.2, while this repository serves delta 0.22.0, rebuilt within hours of each upstream release.

How do I install the latest delta on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install git-delta. New releases arrive through the normal sudo apt upgrade.

Are the packages signed and how are they built?

Every package is signed with the repository's GPG key (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) and built from upstream releases in public GitHub packaging repositories that anyone can inspect.

Which Ubuntu releases are supported?

Ubuntu 22.04 Jammy, 24.04 Noble, 25.10 Questing, 26.04 Resolute and 26.10 Stonking.