Follow

If you’ve migrated the default branch of your git repository from master to main, please delete the master branch and ensure that the main branch is set as the default in your git remote host (e.g., GitHub, etc.) so people don’t accidentally base their contributions on the master branch.

If you do a git branch --move, you won’t have the above issue.

Here’s a good guide for all this, including updating your local settings so that git init uses main instead of master: hanselman.com/blog/easily-rena

@droozilla How’s your mother’s basement this time of year?

@aral
Very good guide indeed, I used that one in many of my projects in order to migrate them :mastoblush:

@aral I often confusing main and master because they looks almost the same to me but master is not preferred word in my vocabulary so I make senpai branch as a main

@aral I believe GitHub like literally just released a feature to rename branches (and automatically retarget things like open PR’s) like yesterday or something.

Https://GitHub.com/GitHub/rena

@aral I had like to name my branch to be named as master. It reminds me the master of my life, my God.

@EdwardTorvalds @aral you can directly name it god - that way you won't even require reminding. It would scream at you all the time.

@EdwardTorvalds maintain status quo of sort. Everybody in their comforts wants no change except that which makes their life more comforting.

@meetdheeraj if that means sticking with my faith and defying BS political correctness, which serves no purpose, then yes!

@aral my team at GitHub also just pushed out default branch renaming. You can perform these changes on GitHub and we will walk contributors through updating their clone’s default branch. Also we will handle redirects for old URLs that point to your old branch name.

@aral
I always saw that name in github as in "master crafter" or in "mastery". I mean only tested robust and seasoned code should be on there.

I mean, ok master/slave in replication or workload delegation is obviously a reference to slavery but here?

@SylvainDe Does it matter? I mean not only has GitHub already implemented it so it’s no trouble at all to adopt but if it means that even one person doesn’t feel bad because of something that’s so easy to change, why not? (Not to mention that main or default are far more semantically correct as a branch does not have to be based on the main branch, which is what a master/copy relationship implies.)

@aral
Well, I understand the feeling, but I'm a "get confortable being inconfortable" kind of guy when justified. In this specific issue, ( french native, still learning English and French) I don't think "mastery" implies being a teacher, boss or trainer. ( May be wrong) so in that case, I believe there is room for nuance in the term.
Slave/master: bad
Master-expert : nice
And I'm fond of keeping nuance in the world.

@aral
I loved that many projects spent a comparable time putting "Black lives matter" banners on their homepages at the time helping spread the word. This, seemed to me like a more productive and frankly, clearer way to address the issue.

Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!