Favicon of git-split-diffs

git-split-diffs

View code changes in split-diff format with syntax highlighting, multiple themes, and inline change detection. Works as a git pager with customizable display options for terminal environments.

git-split-diffs brings the familiar GitHub split-diff experience directly into your terminal. Instead of viewing unified diffs, you get side-by-side code comparisons with full syntax highlighting, making it easier to review changes at a glance.

Key features include:

  • Split-diff display: View old and new code side-by-side like GitHub
  • Syntax highlighting: Powered by Shiki with support for multiple themes and languages
  • Inline change detection: Highlights specific character-level changes within modified lines
  • Multiple themes: Choose from Arctic, Dark, Light, GitHub Dark (Dim), GitHub Light, Solarized variants, and Monochrome options
  • Customizable display: Control line wrapping, minimum line width, and syntax highlighting themes
  • Terminal scrolling: Enable scrolling support for better navigation
  • Custom themes: Create your own themes by defining JSON theme files
  • Performance optimized: Processes diffs efficiently even with large changesets

Install globally via npm and configure as your git pager, or use it manually by piping git diff output. The tool automatically falls back to unified diffs on narrow terminals to maintain readability. Perfect for developers who prefer terminal-based workflows but want the clarity of GitHub's split-diff interface.

Install

Npm
$ npm install -g git-split-diffs

Shell features

Syntax highlighting

Features

True color

Media

asciinema
asciinema

Pros

4
  • Provides GitHub-style side-by-side diffs
  • Includes syntax highlighting with multiple themes
  • Supports inline change detection within lines
  • Configurable display options for terminal environments

Cons

1
  • Requires Node.js version 14 or newer

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to git-split-diffs

Favicon

 

  
 
Favicon

 

  
 
Favicon