News

Git Delta is a Syntax Highlighting Pager for git, diff, and grep output

Published
Git Delta is a Syntax Highlighting Pager for git, diff, and grep output image

Delta is a syntax-highlighting pager in your CLI for git, diff, and grep output. It has a rich feature set that gives you a much better Git CLI experience over the default:

  • Language syntax highlighting
  • Custom light and dark themes
  • Word-level diff highlighting
  • Side-by-side view with line wrapping
  • Line numbers
  • Integrates with Git
  • Navigation key bindings to move between files in large diffs
  • Improved merge conflict display
  • And much more

Here's an example diff from Laravel v10.22.0 - v10.23.0 using the default diff setup:

After configuring delta with Git, here's an example of the default theme using the side-by-side configuration option:

You can see immediately how much easier it is to understand which lines have changed, the file path, and it gives you navigation key bindings to work with diffs in the CLI.

Delta works on a large variety of operating systems—check out the Installation guide to get started. Afterwards, dive into the extensive official delta documentation to set up delta with Git and customize it to your style. You can see the source code on GitHub at dandavison/delta.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Filed in

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article