It sounds way less offensive to those who decry the original terminology’s problematic roots but still keeps its meaning intact.

  • @[email protected]
    link
    fedilink
    128 months ago

    The default for git repositories is still master. Not to be the “real programmers only use CLI” guy, but I feel like git init isn’t too hipster.

    • @[email protected]
      link
      fedilink
      08 months ago

      …which you get a multiline message telling you to change your ways (Linus doesn’t break UX)…every time you init…weird.

      $ git init
      hint: Using 'master' as the name for the initial branch. This default branch name
      hint: is subject to change. To configure the initial branch name to use in all
      hint: of your new repositories, which will suppress this warning, call:
      hint:
      hint: 	git config --global init.defaultBranch <name>
      hint:
      hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
      hint: 'development'. The just-created branch can be renamed via this command:
      hint:
      hint: 	git branch -m <name>
      
      • @[email protected]
        link
        fedilink
        18 months ago

        Gonna be honest, I don’t think I ever read that. I think I usually just do git status immediately after to see if all’s well.

    • femtech
      link
      fedilink
      -28 months ago

      The default has been main for awhile.

      This is the case in our current version of git (git version 2.28. 0). As of October 1, 2020, any new repository you create on GitHub.com will use main as the default branch.

      March 2021 for gitlab

          • Saik0
            link
            fedilink
            English
            18 months ago

            can you point where ANYTHING is recommended at all there?

            Cause it simply says that you can change the name. But “master” is the default. That doesn’t sound like a “recommendation” at all. But just making people aware since some repositories try to force things like “Main”. Almost like the repo you’re using might be enforcing shit that Git in of itself doesn’t give a shit about.

        • @[email protected]
          link
          fedilink
          08 months ago

          No shit? Let me guess; you’re still using git like Linus intended it to be, decentralized, by emailing each other tar.gz’s

          • Saik0
            link
            fedilink
            English
            18 months ago

            No. I’m just not willing to attribute a COMPANY as the sole owner/stakeholder in a protocol that honestly has very little to do with them.

            Just because Github does something, does mean that they represent git.