Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master to main in texts and images #1904

Open
evelinabe opened this issue Oct 5, 2023 · 1 comment
Open

Master to main in texts and images #1904

evelinabe opened this issue Oct 5, 2023 · 1 comment

Comments

@evelinabe
Copy link

evelinabe commented Oct 5, 2023

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.

@evelinabe evelinabe changed the title Master to main on images Master to main in texts and images Oct 16, 2023
@raboof
Copy link

raboof commented Dec 22, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants