Git ships a feature release roughly every three months, and the last year was one of the busiest in its history. Some changes are small conveniences; others, like the git history command and hooks defined in configuration, change how you work every day. And under the hood, Git is preparing its first major version since 2014: Git 3.0.
This lesson collects the news from Git 2.52 (November 2025) to Git 2.56 (September 2026), shows each new command on the Orbit repository and links to the lesson where it is covered in context.
Check and upgrade your Git
New commands only exist if your Git is new enough:
$ git --version
git version 2.56.0
| System | Upgrade with |
|---|---|
| Windows | winget upgrade --id Git.Git, or git update-git-for-windows from Git Bash |
| macOS | brew upgrade git |
| Ubuntu / Debian | sudo add-apt-repository ppa:git-core/ppa, then sudo apt install git |
| Fedora / RHEL family | sudo dnf upgrade git (newer releases arrive with distribution updates) |
CI runners and container images often carry an older Git than your laptop. Check git --version in a pipeline job before relying on a new command there.
The releases at a glance
| Version | Released | Highlights | Lesson |
|---|---|---|---|
| 2.52 | Nov 2025 | git last-modified, git repo, git refs list and exists, sparse-checkout clean | 12 |
| 2.53 | Feb 2026 | git repo info --all, blame --diff-algorithm, more Rust in the build | 12 |
| 2.54 | Apr 2026 | git history reword and split, hooks in config, rebase --trailer, status.compareBranches | 9, 13, 15 |
| 2.55 | Jun 2026 | git history fixup, parallel hooks, file system monitor on Linux, push to remote groups | 7, 13, 15 |
| 2.56 | Sep 2026 | git add --resolved, git branch --delete-merged, git history drop, git refs create and friends | 4, 5, 9 |
Editing history: git history (2.54 to 2.56)
The biggest change for everyday users. git history handles the most common history edits with one command each, without an interactive rebase, without a todo list and without disturbing the files you are working on. It is still marked experimental.
$ git log --oneline -4
f1a9e20 (HEAD -> feature/search) Add debug logging
b7d3c11 Add date rankng to search
0e5c8a7 Add search tests and fix README
c42d9e1 Add search endpoint
$ git history reword b7d3c11 # 2.54: fix the typo "rankng" in the editor
$ git history split 0e5c8a7 # 2.54: pick the README hunks into their own commit
$ git add search.js
$ git history fixup c42d9e1 # 2.55: fold the staged fix into the first commit
$ git history drop f1a9e20 # 2.56: remove the debug logging commit
Every local branch that contains an edited commit is updated too. The command refuses to run on histories with merge commits and stops rather than creating conflicts. As with any rewrite, only use it on commits you have not shared. Lesson 9 compares it with reset and rebase.
Hooks in configuration (2.54) and in parallel (2.55)
Hooks no longer have to be files in .git/hooks. You can define named hooks in any configuration file, including your global one, several per event:
$ git config set --global hook.no-secrets.event pre-commit
$ git config set --global hook.no-secrets.command "~/bin/scan-secrets --staged"
$ git hook list pre-commit
In 2.55, hooks that declare hook.<name>.parallel = true can run at the same time, with hook.jobs setting how many. Hooks that inspect the index or the commit message still run one at a time. Lesson 13 has the full setup.
Safer merges and cleanup (2.56)
Two small commands that prevent common mistakes:
$ git merge feature/search
CONFLICT (content): Merge conflict in server.js
$ git add --resolved # stages only conflicted files, refuses if markers remain
$ git commit
$ git fetch --prune
$ git branch --delete-merged 'origin/*' --dry-run # local branches merged into their upstream
$ git branch --delete-merged 'origin/*'
git add --resolved checks for leftover <<<<<<< markers before staging anything (lesson 5). git branch --delete-merged removes local branches whose work is already in their upstream (lesson 4). Git 2.56 also made merge-base computation much faster in repositories with many branches, so merges and rebases start quicker in large monorepos.
Debugging and history search
$ git bisect start HEAD v1.3.0
$ git bisect run --reset-when-found ./scripts/check-search-speed.sh # 2.56: cleans up when done
$ git last-modified -- deploy/ # 2.52: last commit per path
$ git blame --diff-algorithm=histogram server.js # 2.53
Git 2.54 also lets git log -L work with -S, -G and --word-diff, and 2.56 made git log --follow reliable through merge-heavy history. In 2.56, git log --graph indents separate root histories by default; --no-graph-indent or log.graphIndent false brings back the old drawing. Lesson 12 covers these tools.
Plumbing with friendlier names: git repo and git refs
Git has always had low-level commands for scripts, with names like rev-parse, for-each-ref and update-ref. New commands group this functionality under clearer names:
$ git repo info object.format references.format # 2.52: facts about the repository
object.format=sha1
references.format=files
$ git repo info --all # 2.53: every available key
$ git refs list --sort=-committerdate refs/heads # 2.52: same as git for-each-ref
$ git refs exists refs/heads/main && echo yes # 2.52: same as git show-ref --exists
$ git refs create refs/heads/topic HEAD # 2.56
$ git refs rename refs/heads/topic refs/heads/topic-renamed # 2.56
git refs update and git refs delete accept an expected old value, so a script can say “move this branch only if it still points where I think”, which avoids races. Note that git refs rename moves the reference and its reflog but does not adjust branch configuration the way git branch -m does: for normal branch work, keep using git branch. git repo is still marked experimental.
Quality of life
- Typo hints (2.56):
git push origin/mainnow suggestsgit push origin main, andgit branch --set-upstream-to origin mainsuggests theorigin/mainform. - Push to remote groups (2.55):
git push <group>pushes to every remote listed inremotes.<group>(lesson 7). git checkout -mautostash (2.55): local changes that do not carry over cleanly are saved as a stash entry instead of left half-merged.git add -p(2.54): shows whether a hunk you return to was already accepted or skipped.- Rate limits (2.54): Git honours HTTP 429 “Too Many Requests” with
Retry-After, tunable withhttp.maxRetriesandhttp.maxRetryTime, which helps busy CI runners. - Status for forks (2.54):
status.compareBranches = @{upstream} @{push}reports ahead and behind for both branches (lesson 15). - File system monitor on Linux (2.55):
core.fsmonitor truemakesgit statusfast in huge working trees (lesson 15). - Maintenance (2.54):
git maintenanceuses geometric repacking by default;maintenance.strategy = gcrestores the old behaviour.
The road to Git 3.0
Git keeps a list of planned breaking changes for its next major version. The ones you will notice:
| Change | What it means | Try it today |
|---|---|---|
Default branch main | git init creates main instead of master | git config set --global init.defaultBranch main |
| Reftable by default | Branches and tags stored in a compact binary format, faster with many refs | git init --ref-format=reftable or git refs migrate --ref-format=reftable |
| SHA-256 for new repositories | Stronger hashes replace SHA-1 when hosting and tooling are ready | git init --object-format=sha256 (local experiments) |
| Rust required to build Git | Only matters if you compile Git yourself | Recent releases already include optional Rust code |
$ git init --ref-format=reftable lab-reftable
$ git -C lab-reftable repo info references.format
references.format=reftable
As of November 2026, the Git project has not announced a release date for 3.0, and it states that the SHA-256 switch waits until hosting platforms and tools support it. Existing SHA-1 repositories will keep working; there is no plan to remove them. Use SHA-256 repositories only for experiments for now, because most hosting services cannot accept them yet.
How to keep up
- Read the release notes in the Git source (
Documentation/RelNotes/) or the “Highlights from Git” posts on the GitHub blog, published with each release. - Prefer stable commands in scripts; anything marked experimental (
git history,git repo,git replay) may change its options. - Upgrade Git on CI images too, and pin the version there so pipelines do not change behaviour unexpectedly.
Quick reference
| Task | Command | Since |
|---|---|---|
| Edit a commit message | git history reword <commit> | 2.54 |
| Split a commit | git history split <commit> | 2.54 |
| Fold staged changes into a commit | git history fixup <commit> | 2.55 |
| Remove a commit | git history drop <commit> | 2.56 |
| Hook from config | hook.<name>.event + hook.<name>.command | 2.54 |
| Stage only resolved conflicts | git add --resolved | 2.56 |
| Delete merged branches | git branch --delete-merged 'origin/*' | 2.56 |
| Last commit per path | git last-modified | 2.52 |
| Repository facts | git repo info --all | 2.53 |
| Bisect that cleans up | git bisect run --reset-when-found <script> | 2.56 |
| Try Git 3.0 reference storage | git init --ref-format=reftable | 2.45 |
Exercise
On Git 2.56, you want to remove one unpushed commit from the middle of your branch without opening an interactive rebase. Which command does it?
Show answer
Answer: C. git history drop (Git 2.56, experimental) removes the commit and replays the later ones onto its parent. revert would add a new commit instead, and reset would throw away every later commit too.
Exercise
Which of these will change for brand-new repositories when Git 3.0 ships, according to the plan?
Show answer
Answer: D. The planned defaults for new repositories are main as the initial branch and reftable as the reference backend, with SHA-256 following once the ecosystem is ready. Existing repositories keep working.
Exercise
A script on your CI runner fails with “git: ‘last-modified’ is not a git command”. What is the most likely cause?
Show answer
Answer: A. New commands only exist in new releases. CI images often ship an older Git, so check git –version in the job and upgrade or pin a newer image.
Key takeaways
- Git releases a feature version about every three months; check
git --versionlocally and in CI. git history(2.54 to 2.56) rewords, splits, fixes up and drops commits without a rebase; it is still experimental.- Hooks can live in config (2.54) and run in parallel (2.55).
git add --resolvedandgit branch --delete-merged(2.56) prevent common merge and cleanup mistakes.- Git 3.0 will default to
mainand reftable, then SHA-256; there is no release date yet, and existing repositories keep working.
FAQ
Is it safe to use experimental commands like git history?
For your own local, unpushed commits, yes: they refuse unsafe situations such as conflicts and merges, and the reflog can undo them. Avoid them in shared scripts, because their options may still change between releases.
When will Git 3.0 be released?
There is no official date. The Git project lists the planned breaking changes and has said some, especially the SHA-256 default, will wait until hosting platforms and tools are ready. Follow the release notes for announcements.
Do I need to convert my repositories to SHA-256 or reftable?
No. SHA-1 repositories and the classic reference format stay supported. Reftable can be adopted locally with git refs migrate if you have many branches and tags; SHA-256 conversion of existing repositories is not something you need to plan for today.
Will Git 3.0 rename master to main in my existing repositories?
No. The change only affects the default name for repositories created with git init when you have not set init.defaultBranch. Existing branches keep their names.
Where can I read about each release in detail?
The official release notes are in the Git source tree under Documentation/RelNotes/, and the GitHub blog publishes a “Highlights from Git” post for every release, with examples.