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] !

  • InstallGentoo
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    6
    ·
    9 hours 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.

    • FooBarrington@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      4 hours ago

      I like it, because it forced people not to assume master is the main branch. If something is common enough to almost be a standard, but it’s not actually a standard, it’s just waiting for disaster.

      These assumptions cause unnecessary breakage, but people will make them unless forced not to.