Syntax-Highlighted Git Diffs With delta

Route git diff output through delta for colors, line numbers and side-by-side view.

macOSdiffTerminalgitLow risk
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

RiskLow risk
Requirementsbrew install git-delta
CompatibilitymacOS with Homebrew installed
!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.pager

05Sources

  • Homebrew formula: git-delta
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Installs delta, a syntax-highlighting pager for git and diff output.
  • delta documentation
    delta · vendor-doc · 2026-09-20
    Evidence: Official delta docs covering pager setup and side-by-side view.

Last verified: 2026-09-20 · Category: Developer

06Related solutions