So creating a new repo on GitHub, you get a set of getting started steps. They changed the default branchname to “main” from “master” due to its connotations with slavery.
When I create a new repo now, the initial getting started steps recommend creating a branch named “master” as opposed to “main” as it was a while ago.
It’s especially weird since the line git branch -M master
is completely unnecessary, since git init
still sets you up with a “master” branch.
Disclaimer: I have a bunch of private repos, and my default branchnames are pretty much all “master”.
Is this a recent change?
Edit: Mystery solved, my default branchname is “master”. Thanks [email protected] !
Honestly I feel like people who had an issue with this were just as much making an issue out of nothing. I personally also think that “master” is just as much a normal and valid name as “main”, and to me the rename kinda felt like performative bullshit. But at the same time it’s just a name, if it makes people happy I don’t really care either. Nowadays I tend to use main, but it’s not something I really pay attention to.