progit / progit2

Pro Git 2nd Edition
Other
5.69k stars 1.88k forks source link

Master to main in texts and images #1904

Open evelinabe opened 9 months ago

evelinabe commented 9 months ago

General overview of your idea.

This note was merged in February 2022:

"GitHub changed the default branch name from master to main in mid-2020, and other Git hosts followed suit. So you may find that the default branch name in some newly created repositories is main and not master. 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 term mainthroughout the book and have a note informing that prior to XX date masterwas 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 mastermaking 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.

raboof commented 6 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)