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 !

  • bamboo
    link
    fedilink
    English
    arrow-up
    24
    ·
    edit-2
    10 hours 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.

    • ℍ𝕂-𝟞𝟝@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      14
      ·
      9 hours 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!