# Git v2.54.0 - Product: Git (https://whatsnew.fyi/product/git) - Vendor: Git - Date: 2026-04-20 - Version: v2.54.0 - Original notes: https://github.com/git/git/releases/tag/v2.54.0 - Permalink: https://whatsnew.fyi/product/git/releases/v2.54.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- Changes to check: - **Behavior changed:** `git maintenance` (inferred by a model) - **Behavior changed:** `git add ` (inferred by a model) - **added** — Add "git history" history rewriting (experimental) command - **added** — Add "--maximal-only" option to "git rev-list" and friends to show only commits not reachable by other commits - **added** — Add "--keys" action to "git repo info" to list known keys - **added** — Add "split" subcommand to "git history" - **added** — Add "--trailer" option to "git rebase" to drive the interpret-trailers machinery - **added** — Add "--commit-list-format" option and format.commitListFormat configuration variable to "git format-patch --cover-letter" - **added** — Add "revert" operating mode to "git replay" (experimental) - **added** — Allow hook commands to be defined in configuration files and run multiple of them for the same hook event - **added** — Allow the directory in which reference backends store their data to be specified - **changed** — "git add -p" and friends now note the current status of the hunk being shown - **changed** — "git add -p" learned a new mode that allows the user to revisit a file that was already dealt with - **changed** — "git add " now honors submodule..ignore set to "all" - **changed** — "git apply --directory=./un/../normalized/path" now normalizes the given path before using it - **changed** — "git apply" now reports the name of the input file along with the line number when it encounters a corrupt patch - **changed** — "git config list" now shows values interpreted for specific type with "--type=" option - **changed** — "git maintenance" starts using the "geometric" strategy by default - **changed** — "git merge-file" now uses available configuration files when run outside a repository - **changed** — "git replay" now supports replaying down to the root commit - **changed** — "git replay" now drops commits that become empty, not just the ones that are empty in the original - **changed** — "git send-email" learns to pass hostname/port to Authen::SASL module Git v2.54 Release Notes ======================= UI, Workflows & Features ------------------------ * "git add -p" and friends note what the current status of the hunk being shown is. * "git history" history rewriting (experimental) command has been added. * "git replay" is taught to drop commits that become empty (not the ones that are empty in the original). * The help text and the documentation for the "--expire" option of "git worktree [list|prune]" have been improved. * When "git show-index" is run outside a repository, it silently defaults to SHA-1; the tool now warns when this happens. * "git merge-file" can be run outside a repository, but it ignored all configuration, even the per-user ones. The command now uses available configuration files to find its customization. * "auto filter" logic for large-object promisor remote. * "git rev-list" and friends learn "--maximal-only" to show only the commits that are not reachable by other commits. * Command line completion (in contrib/) update for "stash import/export". * "git repo info" learns "--keys" action to list known keys. * Extend the alias configuration syntax to allow aliases using characters outside ASCII alphanumeric (plus '-'). * A signature on a commit that was GPG signed a long time ago ought to be still valid after the key that was used to sign it has expired, but we showed them in alarming red. * "git subtree split --prefix=P " now checks the prefix P against the tree of the (potentially quite different from the current working tree) given commit. * "git add -p" learned a new mode that allows the user to revisit a file that was already dealt with. * Allow the directory in which reference backends store their data to be specified. * "gitweb" has been taught to be mobile friendly. * "git apply --directory=./un/../normalized/path" now normalizes the given path before using it. * "git maintenance" starts using the "geometric" strategy by default. * "git config list" is taught to show the values interpreted for specific type with "--type=" option. * "git add " has been taught to honor submodule..ignore that is set to "all" (and requires "git add -f" to override it). * Hook commands are now allowed to be defined (possibly centrally) in the configuration files, and run multiple of them for the same hook event. * The way end-users can add their own "git " subcommand by storing "git-" in a directory on their $PATH has not been documented clearly, which has been corrected. * "git send-email" learns to pass hostname/port to Authen::SASL module. * "git send-email" learns to support use of client-side certificates. * "git send-email" has learned to be a bit more careful when it accepts charset to use from the end-user, to avoid 'y' (mistaken 'yes' when expecting a charset like 'UTF-8') and other nonsense. * "git status" learned to show comparison between the current branch and various other branches listed on status.compareBranches configuration. * "git repo structure" command learns to report maximum values on various aspects of objects it inspects. * "git rebase" learns "--trailer" option to drive the interpret-trailers machinery. * "git fast-import" learned to optionally replace signature on commits whose signatures get invalidated due to replaying by signing afresh. * "git history" learned the "split" subcommand. * The reference-transaction hook was taught to be triggered before taking locks on references in the "preparing" phase. * "git apply" now reports the name of the input file along with the line number when it encounters a corrupt patch, and correctly resets the line counter when processing multiple patch files. * The HTTP transport learned to react to "429 Too Many Requests". * "git repo info -h" and "git repo structure -h" limit their help output _[Truncated at 4000 characters — full notes: https://github.com/git/git/releases/tag/v2.54.0]_