# Git v2.56.0 - Product: Git (https://whatsnew.fyi/product/git) - Vendor: Git - Date: 2026-09-28 - Version: v2.56.0 - Original notes: https://github.com/git/git/releases/tag/v2.56.0 - Permalink: https://whatsnew.fyi/product/git/releases/v2.56.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:** `--parseopt` (inferred by a model) - **Behavior changed:** `git checkout` (inferred by a model) - **changed** — Update advice shown by git status when the local branch is behind or has diverged from its push branch to suggest git pull - **changed** — Update handling of promisor-remote protocol capability to allow the other side to add to the list of promisor remotes via the promisor.acceptFromServerURL configuration variable - **changed** — Harden the ort merge backend against corrupt trees by ensuring it aborts under appropriate error conditions - **added** — Add fetch.followRemoteHEAD configuration variable to provide a default for the per-remote remote..followRemoteHEAD setting - **changed** — Update git log --follow to better handle non-linear history in which the path being tracked gets renamed differently in multiple history lines - **changed** — Teach git repo info command new keys to output both absolute and relative paths for gitdir and commondir - **changed** — Recognize git push origin/main or git branch origin main as a potential typo and add advice to offer a typo fix - **added** — Extend git refs toolbox with new create, delete, update, and rename subcommands - **added** — Teach experimental git history command a new drop subcommand to remove a commit with its descendants replayed onto its parent - **changed** — Optimize alignment of commit object name abbreviations in git blame output to reserve a column for marks only when such marks are actually shown - **changed** — Update option parsing with git rev-parse --parseopt and most git subcommands to exit with 0 instead of 129 when the help option is requested directly by the user - **added** — Teach the [includeIf "condition"] conditional inclusion facility for configuration files to use the location of the worktree in its condition - **changed** — Standardize the usage string and SYNOPSIS for git fast-export to make them consistent with each other and other commands - **changed** — Modify git log --graph to visually distinguish parentless root commits by indenting them - **added** — Add userdiff patterns for Swift with support for Swift-specific constructs such as attributes, modifiers, failable initializers, and generics - **changed** — Update configuration file locking to retry for a short period to avoid failures when multiple processes attempt to update the configuration simultaneously - **added** — Add remote-object-info command to git cat-file --batch-command to allow clients to request object metadata from a remote server via protocol v2 without downloading the entire object - **changed** — Teach git branch -d to report when a branch cannot be deleted because it is being used in an active bisect run - **changed** — Update git mv to check for a missing destination leading directory during the checking phase and improve the error message when the rename syscall fails - **added** — Teach git add a new --resolved option to stage conflict-resolved paths while leaving unrelated local changes unstaged Git v2.56 Release Notes ======================= UI, Workflows & Features ------------------------ * Advice shown by "git status" when the local branch is behind or has diverged from its push branch has been updated to suggest "git pull ". * The handling of promisor-remote protocol capability has been updated to allow the other side to add to the list of promisor remotes via the 'promisor.acceptFromServerURL' configuration variable. * The 'ort' merge backend has been hardened against corrupt trees by ensuring it aborts under appropriate error conditions. * The `fetch.followRemoteHEAD` configuration variable has been added to provide a default for the per-remote `remote..followRemoteHEAD` setting. * "git log --follow" has been updated to better handle non-linear history, in which the path being tracked gets renamed differently in multiple history lines. * The "git repo info" command has been taught new keys to output both absolute and relative paths for "gitdir" and "commondir", supported by a new path-formatting helper extracted from "git rev-parse". * When 'git push origin/main' or 'git branch origin main' is run, the command is now recognized as a potential typo, and advice has been added to offer a typo fix. * The 'git refs' toolbox has been extended with new 'create', 'delete', 'update', and 'rename' subcommands to create, delete, update, and rename references, respectively. * The experimental 'git history' command has been taught a new 'drop' subcommand to remove a commit, with its descendants replayed onto its parent. * The alignment of commit object name abbreviations in 'git blame' output has been optimized to reserve a column for marks (caret, question mark, or asterisk) only when such marks are actually shown. * Option parsing with 'git rev-parse --parseopt' and in most 'git' subcommands has been updated to exit with 0 (instead of 129) when the help option ('-h' or '--help') is requested directly by the user, aligning with standard Unix convention. * The '[includeIf "condition"]' conditional inclusion facility for configuration files has been taught to use the location of the worktree in its condition. * The usage string and SYNOPSIS for 'git fast-export' have been standardized to make them consistent with each other and with other commands. * 'git log --graph' has been modified to visually distinguish parentless 'root' commits (and commits that become roots due to history simplification) by indenting them, preventing them from appearing falsely related to unrelated commits rendered immediately above them. * Userdiff patterns for Swift have been added, with support for Swift-specific constructs such as attributes, modifiers, failable initializers, and generics. * Configuration file locking has been updated to retry for a short period, avoiding failures when multiple processes attempt to update the configuration simultaneously. * The 'remote-object-info' command has been added to 'git cat-file --batch-command', allowing clients to request object metadata (currently size) from a remote server via protocol v2 without downloading the entire object. Format placeholders are dynamically filtered on the client based on server-advertised capabilities, returning empty strings for inapplicable or unsupported fields. * 'git branch -d' has been taught to report when a branch cannot be deleted because it is being used in an active bisect run. * 'git mv' has been updated to check for a missing destination leading directory during the checking phase, allowing 'git mv -n' to report the failure. The error message when the rename(2) syscall fails has also been improved to name both the source and the destination. * 'git add' has been taught a new '--resolved' option to stage conflict-resolved paths, while leaving unrelated local changes un _[Truncated at 4000 characters — full notes: https://github.com/git/git/releases/tag/v2.56.0]_