Get Started
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
dark = true # or light = true, or omit for auto-detection
[merge]
conflictStyle = zdiff3
Commands to write the config
git config --global core.pager delta
git config --global interactive.diffFilter 'delta --color-only'
git config --global delta.navigate true
git config --global delta.dark true # or `delta.light true`, or omit for auto-detection
git config --global merge.conflictStyle zdiff3
Alternatively, delta can be used as a TUI based on gitu, with many
keybindings for exploring git diff, git show, and git log views, the ability to stage directly
from delta-rendered diffs (including side-by-side), reorder and fixup commits in your native log
view, and all of gitu's other git operations (commit, push, pull, rebase, etc). This is a much more
powerful way to use delta:
[pager]
diff = delta --tui
show = delta --tui
log = delta --tui
See below for videos.
A complete tui config with ideas for making it look nice
[pager]
diff = delta --tui
show = delta --tui
log = delta --tui
# Everything below is optional: suggestions to show what is available.
[pretty]
commit-format = tformat:%n%n▸ %h %C(blue)%an %C(blue)%ar%C(auto)%d%C(reset)%n%n %C(green)%s%C(auto)
commit-format-full = tformat:%n%n▸ %h %C(blue)%an %C(blue)%ar%C(auto)%d%C(reset)%n%n%w(0,4,4)%C(green)%s%C(reset)%n%+b
[delta]
# Must match the first line of the [pretty] formats above, so that each
# commit is one cursor stop.
commit-regex = ^(▸|commit )
commit-decoration-style = blue ol
# Styles go in a feature rather than here, so that themes (`T`) can
# override them.
features = my-theme
# The TUI's own settings. delta itself does not use them.
# Arguments of the git log and git show that the TUI runs itself
# (`l l`, `right` on a commit).
log-args = --stat
log-args = --date=relative
log-args = --pretty=commit-format
show-args = --pretty=commit-format-full
# Head each file with its `git diff --stat` row.
file-header = stat
# Open every patch with its files folded.
start-folded = true
# A view of your own; use H to bind features, views, and commands to keys.
view = ignore-whitespace {command} -w
[delta "my-theme"]
file-decoration-style = magenta ul
file-added-label = •
file-modified-label = •
file-removed-label = •
file-renamed-label = •
# delta's collection of themes, for `T` to step through:
# [include]
# path = /path/to/delta/themes.gitconfig
Delta has many features and is very customizable; please see delta -h (short help) or delta --help (full manual), or the online user manual.
Features
- Interactive TUI (
--tui) - Language syntax highlighting
- Word-level diff highlighting
- Side-by-side view with line-wrapping
- Line numbering
nandNkeybindings to move between files in large diffs, and between diffs inlog -pviews (--navigate)- Improved merge conflict display
- Improved
git blamedisplay (syntax highlighting;--hyperlinksformats commits as links to hosting provider etc. Supported hosting providers are: GitHub, GitLab, SourceHut, Codeberg) - Syntax-highlights grep output from
rg --json,rg,git grep,grep, etc - Support for Git's
--color-movedfeature. - Code can be copied directly from the diff (
-/+markers are removed by default). diff-highlightanddiff-so-fancyemulation modes- Commit hashes can be formatted as terminal hyperlinks to the hosting provider page (
--hyperlinks). File paths can also be formatted as hyperlinks for opening in your OS. - Stylable box/line decorations to draw attention to commit, file and hunk header sections.
- Style strings (foreground color, background color, font attributes) are supported for >20 stylable elements, using the same color/style language as git
- Handles traditional unified diff output in addition to git output
- Automatic detection of light/dark terminal background
A syntax-highlighting pager for git, diff, and grep output
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 |
|
delta with |
Here's what git show can look like with git configured to use delta:
|
|
|
| "Dracula" theme | "GitHub" theme |
Syntax-highlighting themes
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
|
Side-by-side view
[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:
Line numbers
[delta]
line-numbers = true
Merge conflicts
Git blame
Ripgrep, git grep
|
|
TUI mode
delta --tui is an interactive git client and pager that renders with delta: navigate, fold, stage
and discard in delta's output. It is based on gitu by altsem, a
git client inspired by Magit, and is embedded via a fork.
git diff
Folding files, side-by-side, color themes, line numbers.
https://github.com/user-attachments/assets/8fc87bdd-ddca-4465-acd2-c1b8682b66f3
Changing what git diff shows
Context lines, editing the git command, hiding files, whole functions, gh pr diff.
https://github.com/user-attachments/assets/3979530a-53f0-4f22-ace5-742a73963eda
git log
Searching, opening a commit, interactive rebase, git log -p.
https://github.com/user-attachments/assets/b0886f1c-17bb-4a7b-a220-af067155ae19
Staging and committing
Staging files, hunks and lines; committing and amending.
https://github.com/user-attachments/assets/c5a4ba44-52b7-4b60-9cc2-82dbb4c471f1
More features
Help, toggling delta features such as +/- markers, blame, filtering files.
https://github.com/user-attachments/assets/caad6b67-1988-4171-b45a-66c4bc990d24
Your own views
git commands of your own, opened from keys, with the commit or file under the cursor.
https://github.com/user-attachments/assets/b0a33a5c-90c1-436e-8377-4dca761425a8
Light-mode videos
git diff
Folding files, side-by-side, color themes, line numbers.
https://github.com/user-attachments/assets/4818f448-5d5e-4cf3-88c9-ce3617c40773
Changing what git diff shows
Context lines, editing the git command, hiding files, whole functions, gh pr diff.
https://github.com/user-attachments/assets/b7399ee7-5c40-43ed-b7a4-aa6bbf0e4a3e
git log
Searching, opening a commit, interactive rebase, git log -p.
https://github.com/user-attachments/assets/550c0ce8-be3f-4b76-a4e6-fac835f126ca
Staging and committing
Staging files, hunks and lines; committing and amending.
https://github.com/user-attachments/assets/3f9d573a-f788-475d-8177-92c69047fe35
More features
Help, toggling delta features such as +/- markers, blame, filtering files.
https://github.com/user-attachments/assets/503c0608-a656-4e3c-b9d8-a32ec92b177a
Your own views
git commands of your own, opened from keys, with the commit or file under the cursor.
https://github.com/user-attachments/assets/25c31545-32ac-4442-997a-11fbaf051aee
Installation and usage
Please see the user manual and delta --help.
Maintainers
Metadata
Release files for git-delta 0.23.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| git_delta-0.23.0.tar.gz | 675.3 kB | Without provenance | Details for git_delta-0.23.0.tar.gz |
Built distributions (wheels)
Total release size: 52.7 MB
Release files / git_delta-0.23.0.tar.gz
| Download URL | git_delta-0.23.0.tar.gz |
|---|---|
| Size | 675.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0e3d5cc307935dfeefd140fa6339522a497fc711ec57e71615923e0465c2169
|
|
BLAKE2b-256 checksum How to use checksums |
027d9bef8cba229c546667fd55e8bea6962d1fef36d8f5a825fc6e80c46f37e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-win_amd64.whl
| Download URL | git_delta-0.23.0-py3-none-win_amd64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2f001ffdff25dac015a87d53258e2a6d20119539fc773b345058b06b5cd617b6
|
|
BLAKE2b-256 checksum How to use checksums |
a4db58f887a92a164b7ac75e3a7e95eece2020af26150e7f43ccb4ae5e1c6bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | git_delta-0.23.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
a0a30bba5c062a9d5bf8e18c1ae91c7a2cff1ed0726f4cbbecc9a82c2cd3b6c8
|
|
BLAKE2b-256 checksum How to use checksums |
dd764389dbc12d84b1a8be842e0e532649372b5797fc9644c0e71a2aaa454cac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | git_delta-0.23.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
afca71110f89ae900db7894d148d8d4654d57cfaeaf63539e752f075aa7719f3
|
|
BLAKE2b-256 checksum How to use checksums |
c2c138902ff56e85604c6fee7ce3dce175d83ca28f5bc05772bfb693cd9b541f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | git_delta-0.23.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
f18994f68395cef99619764cb6dd985c8bfa4c9a82314ec147b3d29606c4df31
|
|
BLAKE2b-256 checksum How to use checksums |
24e096ed50873ff65597e376aa8b1cb620944158e2654f2c868b9b110071acd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-manylinux2014_i686.manylinux_2_17_i686.whl
| Download URL | git_delta-0.23.0-py3-none-manylinux2014_i686.manylinux_2_17_i686.whl |
|---|---|
| Size | 6.4 MB |
| Tags | Linux glibc 2.17+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
67621836edf813face065d412ba3c60c2b39ebf0c45090bd51678fa17ec04bf3
|
|
BLAKE2b-256 checksum How to use checksums |
0ef0ad807f2bc442c1b2103f389f868924cfcf548bfeac63993fe1419645ccc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
| Download URL | git_delta-0.23.0-py3-none-manylinux2014_armv7l.manylinux_2_17_armv7l.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Linux glibc 2.17+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
969c1b703d5f450840d174212519b5f79917d35991ee89da0883b984f7e2c74f
|
|
BLAKE2b-256 checksum How to use checksums |
0265f68144304a8a415a8e923deb29dfdf5eabd6aa0dc8d4e3e8ca8c6e505462
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | git_delta-0.23.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
81bd039b1e75c07929cb6c3340baf59f73f99c10b36e8a3e685018915ca88b85
|
|
BLAKE2b-256 checksum How to use checksums |
0d0b8af6e5385ee2fd69c0dec2c88b30a4d10e73ef89b9de3af102981d5fbaa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-macosx_11_0_arm64.whl
| Download URL | git_delta-0.23.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
740129b312f954a5717cc41421f2b61aa1e9a7ca17f709caf5ba1c16c5690f7d
|
|
BLAKE2b-256 checksum How to use checksums |
23ed12e9bfae0a1bd8dc2f88eecd7f71504a758b75bea4b6277490513790b2e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / git_delta-0.23.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | git_delta-0.23.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 5.4 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
76720707ad21807c2898cf60efd91d1e0bfbe0dc32f9b98ebfa78b3153ac051e
|
|
BLAKE2b-256 checksum How to use checksums |
beea0547ce0e455abe77dcfda7e441a8bd7f5ce28be5494ec489657ebdf8b4c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for git-delta 0.23.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.