Skip to content

/compat/git/git-feature-versions

Git features by version: switch, sparse-checkout, reftable

verified onenvironmentlocal · windows 10.0.26200 arm64 · GNU bash 5.3.15 (Git Bash) · git version 2.55.0.windows.5updated 2026-10-20
tool
Git
versions
Git 2.23 – 2.56
os
linux, macos, windows

Many "unknown command" or "unknown option" errors from Git come from an old Git version. This table lists the release that introduced each feature, taken from the official release notes; run git --version to compare.

Feature table

FeatureSinceNotes
git switch, git restore2.23split branch and file operations out of git checkout
git sparse-checkout2.25dedicated command for sparse checkouts
SHA-256 repositories2.29experimental at introduction: git init --object-format=sha256
git maintenance2.29scheduled repository housekeeping
git push --force-if-includes2.30pairs with --force-with-lease
merge.conflictStyle zdiff32.35"zealous diff3" conflict markers
scalar2.38large-repository helper merged into core Git
git replay2.44replay commits without touching the working tree
reftable reference backend2.45git init --ref-format=reftable
remote.<name>.followRemoteHEAD2.48git fetch keeps origin/HEAD in sync
git repo, git last-modified2.52repository info and per-path last change
git history (experimental)2.54history rewriting command
git add --resolved, git branch --delete-merged2.56see the 2.56 release notes

Check before you use a feature

bash
git --version
git switch -h >/dev/null 2>&1 && echo "git switch: available"
git help -a | grep -qw history && echo "git history: available" || echo "git history: not in this version"

Output

git version 2.55.0.windows.5
git history: available

Sources