Skip to main content

delta Cheatsheet

delta is a lightning-fast Rust-based syntax-highlighting pager for git and diff output. Supports side-by-side view, line numbers, 200+ syntax themes, diff-so-fancy compatibility, and can be set as the default git pager.

Updated: 2026-07-20·28 commands

Quick Start

``bash git config --global core.pager delta # Set as git pager git diff | delta # View git diff delta --side-by-side # Side-by-side mode delta --line-numbers # Show line numbers delta --syntax-theme Dracula # Pick a theme ``

Basic Usage(6)

CommandLevel
delta --help
Show delta help
Basic
delta FILE
View file diff (default output)
Basic
diff -u file1 file2 | delta
Diff two files and view with delta
Basic
git diff | delta
View git diff through delta
Basic
git show | delta
View git commit details through delta
Basic
git log -p | delta
View git commit history diffs through delta
Basic

Configuration(6)

CommandLevel
git config --global core.pager delta
Set git global pager to delta
Basic
git config --global interactive.diffFilter 'delta --color-only'
Enable delta coloring for git interactive operations
Intermediate
git config --global delta.options '--side-by-side --line-numbers'
Configure delta default options (side-by-side + line numbers)
Intermediate
export DELTA_FEATURES=+side-by-side
Enable delta features via environment variable
Intermediate
delta --diff-so-fancy
Emulate diff-so-fancy style output
Intermediate
cat ~/.gitconfig
View delta configuration in gitconfig
Basic

Style & Themes(8)

CommandLevel
delta --side-by-side
Enable side-by-side diff view
Basic
delta --line-numbers
Show line numbers in diffs
Basic
delta --syntax-theme THEME
Specify syntax highlighting theme
Intermediate
delta --list-syntax-themes
List all available syntax themes
Basic
delta --dark
Dark theme mode
Basic
delta --light
Light theme mode
Basic
delta --width VARIABLE
Set side-by-side panel width (default variable)
Intermediate
delta --hunk-header-style 'file line-number'
Customize hunk header style
Expert

Advanced(8)

CommandLevel
delta --features FEATURES
Enable delta feature set (comma-separated)
Intermediate
git grep -p pattern | delta
View git grep output through delta
Intermediate
git blame file | delta
View git blame through delta (with highlighting)
Intermediate
delta --navigate
Enable diff navigation (skip to next/previous hunk)
Expert
delta --diff-highlight
Enable enhanced diff highlighting
Intermediate
delta --keep-plus-minus-markers
Keep +/- line markers
Intermediate
delta --hyperlinks
Enable clickable file links in terminal
Expert
delta --config CONFIG_FILE
Use custom config file
Expert

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.