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

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Validate and Convert HEIC Images in Laravel image

Validate and Convert HEIC Images in Laravel

Read article
Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues image

Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues

Read article
Reject Unexpected Array Keys with Laravel Validation image

Reject Unexpected Array Keys with Laravel Validation

Read article
Major performance improvements & security patches for Filament v4.12 and v5.7! image

Major performance improvements & security patches for Filament v4.12 and v5.7!

Read article
Laravel Boost Project Rules: Teach Agents Your Conventions image

Laravel Boost Project Rules: Teach Agents Your Conventions

Read article
Extract an Image's Dominant Color in Laravel image

Extract an Image's Dominant Color in Laravel

Read article