Field Notes
A small, source-linked blog

2026-09-28 · AI-assisted

Highlights from Git 2.56: Safe Conflict Staging and Performance Updates

Git 2.56 introduces safer conflict staging, optimized merge-base traversals, bulk branch deletion, and partial clone blob cleanups.

The open-source Git project released Git 2.56.0, bringing features and performance improvements developed by over 104 contributors. According to the GitHub Blog, this release focuses on workflow safety, faster history traversals, and repository size management.

Safe Conflict Staging with git add --resolved

What changed: Git 2.56 introduces a dedicated workflow command to handle resolved conflicts: git add --resolved. This command scans unmerged regular files for leftover conflict markers. If it finds any, it reports the affected paths and leaves the index unchanged. If the paths are clean of markers, it stages them.

How it works: Unlike git add -u, which updates every modified tracked path and risks staging unrelated local modifications or overlooked conflict markers, --resolved targets only unmerged paths. It cannot be combined with -u or -A modes, and it ignores tracked files that were never conflicted.

Why a developer might care: Developers working with concurrent local edits can stage resolved merge outcomes safely without accidentally committing unrelated modifications or broken code containing conflict markers.

Optimized Merge-Base Traversal

What changed: Git operations that find common ancestors (such as merges and three-dot diffs) now stop searching history earlier.

How it works: Git tracks how many queued commits remain exclusively on each side of the traversal. Once one exclusive side is exhausted, no new meeting point can appear. The traversal stops immediately while still returning every valid merge base.

Why a developer might care: This optimization removes long tails of stale history processing. Production evaluations cited by the source show dramatic speedups in large monorepos, including drop-offs from 0.29 seconds to 0.01 seconds on Linux kernel graph comparisons.

Bulk Branch Deletion

What changed: Git 2.56 adds a bulk deletion command for local topic branches: git branch --delete-merged.

How it works: Developers can pass upstream and name patterns, such as git branch --delete-merged 'origin/*' 'topic-*', accompanied by --dry-run to list candidates before execution. Git automatically skips branches checked out in a worktree, branches with missing upstreams, and ambiguous push configurations.

Why a developer might care: It streamlines the process of cleaning up local branches after their work has landed upstream.

Partial Clone Blob Cleanup

What changed: Partial clones that fetch large blobs on demand can now drop those local objects and rely on a promisor remote to fetch them again later.

How it works: Running git repack -a --filter=blob:limit=1m --drop-filtered removes matching large, recoverable blobs from local storage.

Limitations: This is a manual cleanup mechanism rather than an automatically bounded cache. It currently supports only blob:limit filters, requires a promisor remote, and refuses to drop objects referenced by the current index.

Read the full release announcement on the GitHub Blog.

Sources