Git 2.56 Makes Large-Repo Hygiene a First-Class Workflow
Git 2.56 turns several common shell-script habits into safer built-in commands, while improving partial clones and large-repository performance.
Git 2.56.0 landed on September 28, 2026. It is not a flashy release, and that is exactly why it is worth paying attention to.
The interesting theme is that Git is absorbing more of the workflow glue that engineering teams usually write as shell pipelines, aliases, CI helpers, or internal platform code. Conflict resolution gets a safer staging command. Branch cleanup gets an upstream-aware delete mode. Partial clones get a way to reclaim large blobs after they have been fetched. Tool authors get more complete ref plumbing. Large repositories get performance fixes in places that look boring until they are suddenly on every developer's critical path.
For teams working in monorepos, generated-code repositories, AI-assisted coding branches, and large binary-heavy trees, this release is less about "new Git tricks" and more about reducing the number of sharp scripts wrapped around Git.
What Happened
The upstream Git project published Git 2.56.0 on September 28, 2026, with source tarballs available on kernel.org. GitHub's release write-up says the release includes work from more than 104 contributors, 39 of them new contributors.
The user-facing changes are small but concrete. git add now has a --resolved option for staging only conflict-resolved paths. git branch has a --delete-merged mode for removing local branches whose configured upstream already contains their work. git repack learned --drop-filtered, a partial-clone maintenance feature for removing locally cached promisor blobs that can be fetched again later. git cat-file --batch-command gained a remote-object-info command so clients can ask a remote for object metadata without downloading the object.
The release also continues the longer migration of Git's lower-level interfaces. The git refs toolbox now has create, delete, update, and rename subcommands. The experimental git history command gained drop, which removes a commit and replays descendants onto its parent. git replay gained --linearize. git log --follow handles some non-linear rename histories more reliably. Several internal fixes remove scaling cliffs in reftable writes, pack handling, working-tree diffs, and untracked-file collection.
None of these features changes Git's mental model. That is a good thing. The release mainly turns recurring edge-case workflows into explicit, documented commands.
Why It Matters
Most experienced engineers do not lose time because they cannot remember how to commit. They lose time around the edges: finishing a conflicted merge without staging unrelated edits, deleting stale local branches without deleting the wrong branch, keeping partial clones small after a few days of normal work, or waiting for a command that should have been proportional but hits a quadratic corner.
Those edges matter more now. Repositories are bigger. Generated artifacts are more common. AI coding agents create and revise branches quickly. CI systems and developer platforms increasingly inspect Git state programmatically rather than through a human terminal session. A workflow that was acceptable as a one-line shell alias for one developer becomes questionable when it is copied into every repo template, every internal CLI, or every agent harness.
Take branch cleanup. A familiar pattern is some variation of git branch --merged, filtering out protected names, then piping into xargs git branch -d. That can be good enough for a careful human. It is less satisfying as platform behavior because the script has to answer policy questions that Git already understands better than a shell pipeline does. What upstream does the branch track? Is the branch checked out in another worktree? Has the upstream disappeared? Would a push update the configured upstream and make the branch look deceptively safe to remove?
git branch --delete-merged moves that logic into Git. That does not make deletion risk-free, but it gives teams a better primitive.
The same pattern shows up in conflict resolution. After fixing conflicts, many developers run git add -u because it is fast. The problem is that -u stages every modified tracked path, not only the files that were conflicted. If the worktree contains unrelated edits, they become part of the merge resolution commit unless the developer notices. git add --resolved narrows the operation to unmerged paths and refuses to stage anything if conflict markers remain.
That sounds modest. In practice, modest guardrails are exactly what version-control tooling should provide. The highest-value Git improvements are often the ones that prevent an accidental commit shape before it happens.
How It Works
git add --resolved updates the index for unmerged paths matching the optional pathspec. The important detail is that it is not a synonym for "stage everything I touched." It looks at paths Git knows are in an unmerged state, checks whether conflict markers remain in the working tree, and stages the resolved paths only if the check passes. The documentation says unmerged binary files and file deletions can be staged as resolved, while any path with leftover markers makes the command refuse to stage files.
That gives merge resolution a dedicated commit-preparation step:
git merge origin/main
# edit conflicted files
git add --resolved
git status
git commitThe interesting part is the failure mode. A command that refuses to stage because one file still contains conflict markers is annoying for a minute. A command that stages unrelated local edits into a merge commit is annoying for every person who has to review, bisect, or revert that commit later.
git branch --delete-merged is more policy-heavy. It deletes local branches whose configured upstream matches a supplied pattern, but only when the local branch tip is reachable from that upstream. The docs also describe cases Git skips: the upstream ref no longer exists, the branch is checked out in any worktree, the branch is the local upstream of another branch that is not also being deleted, or branch.<name>.deleteMerged is set to false. A --dry-run mode prints candidates before deleting anything.
That is a meaningful improvement over "list branches, grep, xargs." The built-in command has access to ref configuration, worktree state, upstream relationships, and reachability. A script can approximate that, but it usually starts simple and collects exceptions only after someone gets hurt.
The partial-clone changes are aimed at a different pain. Blobless and filtered clones are useful because they avoid downloading large object payloads until a command needs them. But once those blobs are fetched, they tend to accumulate locally. Git 2.56 adds git repack --drop-filtered so a repository can delete local objects that match a filter, currently limited to large blobs via --filter=blob:limit=<n>, when those objects are recoverable from a promisor remote.
The guardrails are important. --drop-filtered requires a promisor remote and refuses to run otherwise. It requires -a and implies -d, because the space is reclaimed by rebuilding the promisor pack without the filtered objects and deleting redundant packs. It is incompatible with --filter-to and bitmap writing. In non-bare repositories, it refuses to run during operations such as merge, rebase, cherry-pick, revert, or bisect, and it refuses to drop blobs referenced by the current index.
In other words, this is not "delete random objects and hope the remote has them." It is a maintenance primitive for partial clones that acknowledges the cost of re-fetching later.
The related remote-object-info addition to git cat-file --batch-command lets clients request metadata such as object size from a remote over protocol v2 without downloading the full object. GitLab's write-up gives the practical example: in a blobless clone, a tool can ask how large a blob is without materializing the blob locally. That matters for code hosts, repo analyzers, sparse workspaces, model-training corpus builders, and any system that needs to reason about repository shape before paying the bandwidth and disk cost.
Finally, the new git refs subcommands continue a slow but useful cleanup of Git's plumbing layer. Reference operations have historically been scattered across commands such as git update-ref and git symbolic-ref. Consolidating create, update, delete, and rename operations under git refs gives tool authors a clearer namespace. The optional old value for update and delete is especially important because it supports compare-and-swap style protection against racing ref changes.
Example
Imagine an internal platform repository with long-running feature branches, multiple worktrees, and a partial clone setup for developers who do not need every generated asset locally.
After upgrading developer machines and CI images to Git 2.56, a team could replace a risky merge habit with:
git merge origin/main
# resolve conflicts in editor
git add --resolved
git diff --cached --stat
git commitThe git diff --cached --stat step is still worth keeping. The new command reduces accidental staging; it does not remove the need to look at the commit you are about to make.
For branch cleanup, an internal CLI no longer needs to parse git branch --merged output:
git branch --delete-merged 'origin/*' 'feature/*' --dry-run
git branch --delete-merged 'origin/*' 'feature/*'The first argument pattern describes acceptable upstreams. The optional branch pattern limits local candidates. That distinction matters. It lets a team say "delete feature branches whose own upstream already contains them" rather than "delete whatever looks merged into my current branch."
For partial clone maintenance, a developer or scheduled local maintenance job might run:
git repack -a --filter=blob:limit=10m --drop-filtered --dry-run
git repack -a --filter=blob:limit=10m --drop-filteredThe dry run lists what would be dropped. The real command drops large promisor blobs that remain recoverable from the remote. This should be treated as a maintenance operation, not something to run blindly inside an active rebase or while benchmarking build performance. The point is to make the local cache recoverable and bounded by policy, not to create surprise network fetches in the middle of ordinary work.
A repository-analysis tool can also inspect a remote object without downloading it:
echo "remote-object-info origin <object-id>" | git cat-file --batch-commandThat is the kind of primitive that matters for tooling. A human might not type it often. A server-side analyzer, local workspace manager, or agent runtime can use it to make better decisions about whether to hydrate an object.
My Take
Git 2.56 is a reminder that mature tools still improve by deleting folklore.
There is a lot of Git knowledge hidden in team aliases. Some of it is harmless convenience. Some of it encodes policy that Git can now express directly. When a built-in command understands upstream configuration, worktree state, conflict markers, promisor remotes, and ref race conditions, it should usually replace the local script that approximates those checks.
I would start with git add --resolved and git branch --delete-merged. They are easy to explain, easy to adopt, and directly reduce common mistakes. They also fit AI-assisted development: agents and humans both produce noisy worktrees, and narrower commit-preparation commands help when branches are created, merged, and repaired quickly.
The partial-clone work is more specialized, but it is the part I would watch closely if I owned developer infrastructure. Partial clone only becomes boring when it has a lifecycle: clone small, fetch lazily, inspect remotely, drop recoverable local payloads, and avoid surprising the user during active operations. Git 2.56 does not finish that story, but remote-object-info and --drop-filtered fill in two important missing pieces.
I would be more cautious with git history drop. The experimental git history command is promising because it gives common history-editing actions dedicated verbs instead of sending everyone into the full interactive rebase interface. But "experimental" is doing real work here. It is worth trying in disposable branches and teaching to advanced users, not wiring into critical automation yet.
For platform teams, the practical move is simple: upgrade test images first, then replace custom branch-cleanup and conflict-staging scripts where the new primitives fit. Start with scripts that delete refs, stage files, or operate inside partial clones. Those are the places where a better built-in command buys real safety.
Conclusion
Git 2.56.0 is not trying to change how engineers think about version control. It is taking several workflows that experienced teams already perform and giving them sharper, safer primitives.
git add --resolved makes conflict resolution less likely to drag unrelated edits into a merge commit. git branch --delete-merged gives branch cleanup access to upstream and worktree state. git repack --drop-filtered makes partial clones easier to maintain after large blobs have been fetched. remote-object-info gives tooling a cheaper way to inspect remote object metadata. The git refs additions continue the cleanup of low-level ref operations for scripts and platforms.
That is exactly the kind of release serious engineering teams should notice. Not because everyone needs to upgrade today, but because the next generation of internal Git tooling should be built on these primitives instead of on brittle shell folklore.