⚠ Partial

git 2.17 + Ubuntu 18.04: Missing git switch, git restore, and defaultBranch

git 2.17 + Ubuntu 18.04 LTS

Ubuntu 18.04 (Bionic) ships git 2.17.1 — before `git switch` and `git restore` (added in 2.23) and before `init.defaultBranch` (added in 2.28). Scripts or tutorials using these commands will fail. Ubuntu 18.04 is also EOL (April 2023). Install a newer git via the git-core PPA or upgrade the OS.

Workarounds & Fixes

Related Error Pages

Related Combinations

git 2.43 + Ubuntu 24.04 LTS ✓ Works git 2.34 + Ubuntu 22.04 LTS ✓ Works git 2.25 + Ubuntu 20.04 LTS ⚠ Partial git (latest, via Homebrew) + macOS (any supported) ✓ Works
Last verified: 2024-06-01  ·  Category: git + OS / Features