Re: git branch behavior after git init needs fixing
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 9, 2026, 17:08 UTC
- Message-ID
- <xmqqjywl6e0w.fsf@gitster.g>
- In-Reply-To
- <D1CA4E13-B279-4931-81EF-364169564612@gmail.com>
Ben Knoble <ben.knoble@gmail.com> writes:
> You are probably looking for init.defaultBranch and the 3.0 > breaking changes plan (which will make main the default).
In other words, run
$ git config --global init.defaultbranch main
just once to live in the future? That sounds like a sensible suggestion to me.