delta replaces less for git show, diff, and blame with themes, word-level highlights, and side-by-side layout. Configure it as git’s pager or launch an interactive TUI on top of gitu.
Overview
delta is a command-line pager that renders git, unified diff, and grep output with language-aware highlighting and rich styling. It plugs into git via core.pager settings so everyday show, diff, and log -p views gain readability without replacing git itself.
Layout options include side-by-side panels, line numbers, merge-conflict highlighting, navigation between files in large diffs, and Git’s --color-moved support. Themes reuse bat’s syntax palettes for light and dark terminals, and style strings can tune dozens of UI elements to match personal preferences.
Hyperlinks can turn commit hashes and file paths into links for hosts such as GitHub, GitLab, SourceHut, and Codeberg. Ripgrep, git grep, and classic grep pipelines can feed JSON or text through delta for consistent coloring.
With --tui, delta embeds the gitu client to stage hunks, reorder commits, and run git operations from a keyboard-driven interface while still using delta’s diff rendering. The executable installs as git-delta in package managers but runs as delta on the shell.
Key features
- Git-aware syntax highlighting
- Side-by-side diff view
- Word-level diff emphasis
- Line numbering
- Merge conflict styling
- Interactive TUI mode
- Grep and ripgrep coloring
- Hyperlinked commits and paths
Use cases
- Reading large git diffs in terminal
- Reviewing pull requests locally
- Pretty blame output
- Colorized ripgrep reviews
- Keyboard-driven git staging