Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Delta | 17,525 | 9 hours ago | 38 | August 31, 2022 | 208 | mit | Rust | |||
A syntax-highlighting pager for git, diff, and grep output | ||||||||||
Diff So Fancy | 16,308 | 41 | 3 | 3 months ago | 39 | July 27, 2021 | 27 | mit | Perl | |
Good-lookin' diffs. Actually… nah… The best-lookin' diffs. :tada: | ||||||||||
Walle Web | 11,300 | a year ago | 17 | May 16, 2016 | 387 | apache-2.0 | Python | |||
walle - 瓦力 Devops开源项目代码部署平台 | ||||||||||
Vim Gitgutter | 8,059 | a day ago | mit | Vim Script | ||||||
A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks. | ||||||||||
Icdiff | 4,052 | 2 months ago | 1 | February 27, 2018 | 17 | other | Python | |||
improved colored diff | ||||||||||
Gitsigns.nvim | 3,112 | 12 days ago | 53 | mit | Lua | |||||
Git integration for buffers | ||||||||||
Vim Signify | 2,596 | a month ago | 10 | mit | Vim Script | |||||
:heavy_plus_sign: Show a diff using Vim its sign column. | ||||||||||
Nbdime | 2,448 | 13 | 8 | a month ago | 21 | October 26, 2021 | 77 | other | Python | |
Tools for diffing and merging of Jupyter notebooks. | ||||||||||
Diff2html | 2,398 | 230 | 115 | 2 months ago | 178 | September 14, 2022 | 27 | mit | TypeScript | |
Pretty diff to html javascript library (diff2html) | ||||||||||
Diffview.nvim | 2,325 | 8 hours ago | 26 | other | Lua | |||||
Single tabpage interface for easily cycling through diffs for all modified files for any git rev. |
Install it (the package is called "git-delta" in most package managers, but the executable is just delta
) and add this to your ~/.gitconfig
:
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
Delta has many features and is very customizable; please see the user manual.
n
and N
keybindings to move between files in large diffs, and between diffs in log -p
views (--navigate
)git blame
display (syntax highlighting; --hyperlinks
formats commits as links to hosting provider etc. Supported hosting providers are: GitHub, GitLab, SourceHut, Codeberg)rg
, git grep
, grep
, etc--color-moved
feature.-/+
markers are removed by default).diff-highlight
and diff-so-fancy
emulation modes--hyperlinks
).
File paths can also be formatted as hyperlinks for opening in your OS.Code evolves, and we all spend time studying diffs. Delta aims to make this both efficient and enjoyable: it allows you to make extensive changes to the layout and styling of diffs, as well as allowing you to stay arbitrarily close to the default git/diff output.
![]() delta with line-numbers activated
|
![]() delta with side-by-side and line-numbers activated
|
Here's what git show
can look like with git configured to use delta:
![]() |
![]() |
"Dracula" theme | "GitHub" theme |
All the syntax-highlighting color themes that are available with bat are available with delta:
![]() |
![]() |
delta --show-syntax-themes --dark
|
delta --show-syntax-themes --light
|
[delta]
side-by-side = true
By default, side-by-side view has line-numbers activated, and has syntax highlighting in both the left and right panels: [config]
![]() |
Side-by-side view wraps long lines automatically:
![]() |
[delta]
line-numbers = true
![]() |
![]() |
![]() |
|
Please see the user manual and delta --help
.