⚠ 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.25 + Ubuntu 20.04 LTS ⚠ Partial git (Xcode CLT bundled) + macOS (any) ⚠ Partial git 2.43+ + Debian 12 (Bookworm) ⚠ Partial git + Git LFS + Any OS ⚠ Partial
Last verified: 2024-06-01  ·  Category: git + OS / Features