2
submitted 2 months ago* (last edited 2 months ago) by HK65@sopuli.xyz to c/technology@lemmy.world

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 bamboo@lemmy.blahaj.zone !

top 11 comments
sorted by: hot top controversial new old
[-] phoenixz@lemmy.ca 1 points 2 months ago

I honestly never saw a problem with master / slave, nor with whitelist / blacklist. It's the same as killing children, forking children, etc, it's computer terminology and not everything means that bad thing that you personally want it to mean.

I'm not politically correct, I live in a real world. Calling a git repository different really isn't doing shit against slavery and it pisses me off that people are going to down vote me on their slavery built iPhone because apparently I like naughty words and you apparently like slavery.

You want to stop racism? Then stop meddling with computer terminology and go out there and actually do something real.

[-] surewhynotlem@lemmy.world -1 points 2 months ago

I appreciate your intense emotion about the topic of changing terminology. It's hard to wrangle in our feelings when things change.

I completely agree with your last statement. What have you done to accomplish that?

[-] phoenixz@lemmy.ca -1 points 2 months ago

If you're trying to appear sassy at least try and understand the point.

I'm not virtue signalling with PRETENDING to fight racism by bitching about words I only partially understand. I fight racism by simply treating everyone the same, I simply don't give a damn about skin color, never have. Lead by example.

So what have you done?

[-] surewhynotlem@lemmy.world -1 points 2 months ago

That's not fighting racism. Being not racist isn't the same as being anti racist.

For example, do you think by existing in a capitalist society you're also fighting socialism? How many wars are you winning in your head by doing nothing?

You're doing so little that you can't even stop using words that bother people, even when they said it bothers them.

You have a blessed and isolated life if there are zero words that can cause you emotional harm. This doesn't mean you're strong, it means you're privileged. White privilege, in fact.

As for what I do? I give interviews to minority candidates when when their resume isn't great. And it's been a boon for my company because it turns out they're really talented, but bad at resumes. I also spend time educating my fellow minimally melanated morons on the concept of systemic racism, and why simply doing nothing is not the same as being not racist. Hence we're here.

[-] InstallGentoo@lemmy.zip 0 points 2 months ago

God I wish. The change to "main" was pointless and unnecessary. It's almost like people want to find problems when there aren't any.

[-] gerryflap@feddit.nl 1 points 2 months ago

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.

[-] beeb@lemm.ee 1 points 2 months ago

I prefer main simply because it faster to type. I propose main branches be renamed to "m"

[-] Kaboom@reddthat.com -1 points 2 months ago

How about trunk to imply how to use it

[-] bamboo@lemmy.blahaj.zone 0 points 2 months ago* (last edited 2 months ago)

What's your default branch name for the user you're logged in as: https://github.com/settings/repositories

For me this setting is main and I created a new repo, and the steps all include the main branch and not master.

[-] HK65@sopuli.xyz 0 points 2 months ago

Well, that is embarassing. It's master.

I don't remember setting this, but then again, I don't remember a lot of things. Thanks!

[-] Kaboom@reddthat.com -1 points 2 months ago

Is it an old setup? Git won't change existing configs.

this post was submitted on 30 Jan 2025
2 points (100.0% liked)

Technology

69451 readers
1752 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS