Default git branch name is master not main on MacOS #14650
Labels
A-git
Area: anything dealing with git
C-bug
Category: bug
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Problem
On MacOS Sequoia 15.0.0,
cargo init
will create a project with git initialized but the default branch name is "master" instead of "main".Steps
cargo init
an empty projectgit status
.Possible Solution(s)
Manually modify the name of the branch.
Notes
No response
Version
cargo 1.81.0 (2dbb1af 2024-08-20)
release: 1.81.0
commit-hash: 2dbb1af
commit-date: 2024-08-20
host: aarch64-apple-darwin
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.7.1 (sys:0.4.73+curl-8.8.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Mac OS 15.0.0 [64-bit]
The text was updated successfully, but these errors were encountered: