git-split-diffs
brew install git-split-diffs
v2.3.0
MIT
Syntax highlighted side-by-side diffs in your terminal
45
30-day installs · #4904
85
90-day · #5954
409
365-day · #5563
2.7k
★ GitHub stars · updated 2mo ago
Runtime dependencies
GitHub topics
diffs
difftool
git
github
split-diffs
syntax-highlighting
visual-studio-code
Links
- https://github.com/banga/git-split-diffs
- GitHub: banga/git-split-diffs
- Brew formula source: Formula/g/git-split-diffs.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"node"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Syntax highlighted side-by-side diffs in your terminal",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:06+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "git-split-diffs",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-14T01:05:27Z",
"github_readme_excerpt": "# git-split-diffs\n\nGitHub style split (side by side) diffs with syntax highlighting in your terminal.\n\n\n\n\n\n[Demo 1](https://asciinema.org/a/Bsk7CFtZkDZ4Ea89BwDcbD8LA) | [Demo 2](https://asciinema.org/a/7HrYqF2vjfrKXt28bv6BUAcym)\n\n## Usage\n\nThis currently requires `node` version 14 or newer to run.\n\n### Install globally\n\n```sh\nnpm install -g git-split-diffs\n\ngit config --global core.pager \"git-split-diffs --color | less -RFX\"\n```\n\n### Install locally\n\n```sh\nnpm install git-split-diffs\n\ngit config core.pager \"npx git-split-diffs --color | less -RFX\"\n```\n\n### Use manually\n\n```sh\ngit diff | git-split-diffs --color | less -RFX\n```\n\n## Customization\n\n### Line wrapping\n\nBy default, lines are wrapped to fit in the screen. If you prefer to truncate them, update the `wrap-lines` setting:\n\n```\ngit config split-diffs.wrap-lines false\n```\n\n### Inline changes\n\nBy default, salient changes within lines are also highlighted:\n\n\nYou can disable this with the `highlight-line-changes` setting:\n\n```\ngit config split-diffs.highlight-line-changes false\n```\n\n### Enable scrolling in the terminal\n\n```sh\ngit config --global core.pager \"git-split-diffs --color | less -+LFX\"\n```\n\n(note the difference from the main configuration with the added `+` to the `less` command)\n\n### Syntax highlighting\n\nSyntax highlighting is supported via [shiki](https://github.com/shikijs/shiki/), which uses the same grammars and themes as vscode. Each theme specifies a default syntax highlighting theme to use, which can be overridden by:\n\n```\ngit config split-diffs.syntax-highlighting-theme \u003cname\u003e\n```\n\nThe supported syntax highlighting themes are listed at https://github.com/shikijs/textmate-grammars-themes/tree/main/packages/tm-themes#tm-themes\n\nYou can disable syntax highlighting by setting the name to empty:\n\n```\ng",
"github_repo": "banga/git-split-diffs",
"github_stars": 2736,
"github_topics": [
"diffs",
"difftool",
"git",
"github",
"split-diffs",
"syntax-highlighting",
"visual-studio-code"
],
"homepage": "https://github.com/banga/git-split-diffs",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 45,
"installs_365d": 409,
"installs_90d": 85,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "git-split-diffs",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 4904,
"rank_365d": 5563,
"rank_90d": 5954,
"raw_hash": "08d3ad3598a28285",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/git-split-diffs.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "2.3.0",
"versioned_formulae": [],
"why_use_this": null
}