Open evelinabe opened 9 months ago
But git don't use
master
as a default anymore so it really should be the other way round
Are you sure? Still seems to default to "master" to me, i.e. seeing https://github.com/git/git/blob/master/refs.c#L684 and man git-init
It would remove the term master making it more coherent with the terminology now used.
(I'd still be in favor of this change as 'main' really does seem a lot more common these days, but I'm just a bystander)
General overview of your idea.
This note was merged in February 2022:
"GitHub changed the default branch name from
master
tomain
in mid-2020, and other Git hosts followed suit. So you may find that the default branch name in some newly created repositories ismain
and notmaster
. In addition, the default branch name can be changed (as you have seen in <<ch01-getting-started#_new_default_branch>>), so you may see a different name for the default branch.However, Git itself still uses
master
as the default, so we will use it throughout the book_."But git don't use
master
as a default anymore so it really should be the other way round - using the termmain
throughout the book and have a note informing that prior to XX datemaster
was the default branch and that's why you may see it many projects.I'm beginning to realize I might (unknowingly) be poking in an open wound here.
What problem will this solve?
It would remove the term
master
making it more coherent with the terminology now used.Have you thought about other solutions?
No response
Do you want to help with this enhancement idea?
Yes! But I need some assistance and verification that this is a change you'll want to merge.