Syntax-Highlighted Git Diffs With delta
Route git diff output through delta for colors, line numbers and side-by-side view.
Run git config --global core.pager delta, then git diff shows highlighted output.
01Command
Command
$ git config --global core.pager "delta"02What it does
delta is a pager that highlights diff syntax, adds line numbers and can split the view side by side. Setting core.pager routes all git pager output through it; add --side-by-side or navigation keys through the included config to customize.
03Risk
!Warning: The global config change affects every repository for your user; unset core.pager to revert to the default pager.
04Undo
Undo
$ git config --global --unset core.pager05Sources
- Homebrew formula: git-deltaEvidence: Installs delta, a syntax-highlighting pager for git and diff output.
- delta documentationEvidence: Official delta docs covering pager setup and side-by-side view.
Last verified: 2026-09-20 · Category: Developer
06Related solutions
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.