# delta

> Syntax-highlighting pager for git, diff, and grep output with side-by-side view and word-level diff highlighting

Stars: 32.6k · Language: Rust · License: MIT · Categories: Git

- Repository: https://github.com/dandavison/delta
- Website: https://dandavison.github.io/delta/
- Page: https://www.trmn.sh/tools/delta

## Overview

Delta is a syntax-highlighting pager that enhances git diff, blame, and grep output with improved formatting and navigation. It replaces the default git pager to provide language syntax highlighting using the same themes as bat, word-level diff highlighting with Levenshtein edit inference, and side-by-side view with automatic line wrapping.

The tool integrates directly with git by configuring it as the core.pager and interactive.diffFilter in gitconfig. Delta supports navigation between diff sections using n/N keybindings, displays merge conflicts with improved formatting, and can syntax-highlight output from ripgrep, git grep, and standard grep. It includes hyperlink support for commit hashes and file paths, linking to hosting providers like GitHub, GitLab, SourceHut, and Codeberg.

Delta offers extensive customization with 20+ stylable elements using git's color/style language, automatic light/dark terminal background detection, and compatibility with traditional unified diff output. It includes emulation modes for diff-highlight and diff-so-fancy, and removes +/- markers by default to enable direct code copying from diffs. The tool is primarily used by developers who frequently review code diffs and want enhanced readability and navigation capabilities.

![Delta with line numbers activated](https://media.trmn.sh/cached/5ade4248e9c045039c550659be70df610b798cf6014de94147128cff0cca4222.png)

![Delta with side-by-side and line numbers](https://media.trmn.sh/cached/abfb4e3b6dda79d19d00e61f5c5a1dbaf39541b9b87915fdd05e1abcf1f678da.png)

![Git show with Dracula theme](https://media.trmn.sh/cached/c322369c2ca0282cb62224c7fd6ec47f1dab5cb72f9fd1ed6b4e8a1da5a11b89.png)

## Alternatives

- [Jujutsu](https://www.trmn.sh/tools/jj.md): Git-compatible version control system with working-copy-as-a-commit, an operation log with undo, and automatic rebase of descendants. CLI is jj. (Rust, 32.3k stars)
- [gitui](https://www.trmn.sh/tools/gitui.md): Terminal-based Git GUI for staging, committing, branching, and repository management with keyboard-only control (Rust, 22.6k stars)
- [gitoxide](https://www.trmn.sh/tools/gitoxide.md): Pure Rust implementation of Git, offered as the gix library crate plus gix and ein command-line binaries for testing the API and running workflow tools. (Rust, 12.1k stars)
- [onefetch](https://www.trmn.sh/tools/onefetch.md): Command-line tool that displays Git repository information and code statistics in terminal (Rust, 12.1k stars)
- [git absorb](https://www.trmn.sh/tools/git-absorb.md): Git subcommand that automatically creates fixup! commits from staged changes by finding the commit each hunk belongs to, with optional autosquash rebase. (Rust, 5.8k stars)

## Guides

- [A terminal git workflow with lazygit and delta](https://www.trmn.sh/guides/lazygit-delta-workflow): Install lazygit and delta, set delta as git's pager, render lazygit diffs with it, and stage hunks, commit and rebase from the keyboard.

---

Canonical: https://www.trmn.sh/tools/delta
