• sgibson5150
    link
    fedilink
    21 year ago

    I’ve heard people talking about the switch but I’ve not seen it yet on git for Windows. I’d upgrade but I need to set up a new remote box anyway (to replace my on-prem Bitbucket) and I don’t need any hassles between now and whenever I get a chance to do that.

  • @[email protected]
    link
    fedilink
    101 year ago

    I use master because when I do ‘git init .’ I get a master branch and I am lazy enough to not rename it. As for typing it later on… . Well zsh does that for me

  • @[email protected]
    link
    fedilink
    21 year ago

    I like und use “main” because it’s shorter, but call it master branch in colloquial speech because it’s cooler.

  • @[email protected]
    link
    fedilink
    221 year ago

    I find it funny how many ppl complained about it when it came up. Now it is the default on github and other code forges. And now one cares anymore if it is master or main.

    • AggressivelyPassive
      link
      fedilink
      661 year ago

      It was never about the name itself, but about breaking a convention for extremely dubious reasons.

      • Deebster
        link
        fedilink
        121 year ago

        On the plus side, forcing people to support alternative branch names surely has led to better software support for a core Git feature.

        • MeanEYE
          link
          fedilink
          31 year ago

          That’s like forcing people to have different color shoe laces and calling it good practice. In reality it changed nothing but forced a lot of people to work on solving issues with their scripts and automation tools for the sake of change instead of spending that time on writing actual code and fixing bugs.

      • @[email protected]
        link
        fedilink
        11
        edit-2
        1 year ago

        You sound like a slave owner, ngl

        I am not pro slavery but I will not free my chattel slaves. People just break with this tradition for extremely dubious reasons.

        Listen to yourself!

        Edit: I was thinking about putting “/s” at the end but thought it was obvious enough. I was wrong

              • @[email protected]
                link
                fedilink
                11 year ago

                I guess I once again forgot the “/s”. I’m not going to call me “Poe” at any point of time /s

            • Deebster
              link
              fedilink
              61 year ago

              I think on the Fediverse (or just Lemmy?) I’ve seen more people who’d post your comment non-ironically. Or maybe they’re not serious either (but they’d have to be really committed to the bit).

              • @[email protected]
                link
                fedilink
                21 year ago

                I had a conversation recently where someone said they weren’t serious after several levels of comments that were downvoted into oblivion. I try to make myself understood in the second (or third) level of comments or, as in this case, in an edit

      • @[email protected]
        link
        fedilink
        31 year ago

        Sb got offended for no reason, then companies decided to get public approval points out of it; nothing new or notable. Seriously, tf is the point of overanalyzing it like there’s nothing better to do?

      • MeanEYE
        link
        fedilink
        31 year ago

        This, sooo much this! People don’t realize that this change created a lot of unnecessary work to a lot of developers for no other reason than PR or to act smug about it. They solved slavery problem by renaming master to main equally well as they solved homophobia and transphobia by allowing people to specify pronouns on their profiles. Who the hell cares if you identify as tree sap. However many do care if your code sucks or doesn’t follow coding style.

        • @[email protected]
          link
          fedilink
          61 year ago

          Do you really have to, tho? One can keep using masters, move them to mains, or even symlink one to another so that everyone is comfortable with whatever they’re used to. Seems like a non-issue to me 🤷

            • @[email protected]
              link
              fedilink
              31 year ago

              I mean smth like git symbolic-ref refs/heads/master refs/heads/main. Not sure if it’s a bad practice or smth, tho

          • @[email protected]
            link
            fedilink
            English
            31 year ago

            We’ve ended up with a 50:50 chance of what any repo is doing. All depends on when the repo was created (old ones are all master) and if the creator tried to preserve consistency or not (yes: master, no: took the default of main).

            It’s annoying and pointless.

          • AggressivelyPassive
            link
            fedilink
            11 year ago

            It’s an issue, because many tools default to a certain branch, and people do too. So each build pipeline has to be changed, each dev has to check for each repo he’s working on, whether it’s using main or master, etc, etc.

            Just think about what hell would break loose, if Microsoft would be forced to rename C: to something else because someone was reminded of the "C word ".

          • MeanEYE
            link
            fedilink
            11 year ago

            For a while, yes, you had to. Every new repo would be main while old ones remained master. Tools that default to a specific branch aside now you had to remember and check which branch you are merging into every time.

      • Farid
        link
        fedilink
        41 year ago

        Depends on your version of git, I believe.

        • @[email protected]
          link
          fedilink
          English
          81 year ago

          The latest version from kernel.org still uses master. It’s certainly possible for distro maintainers to change it on the versions they package though.

          • Farid
            link
            fedilink
            61 year ago

            Yeah, seems like I’m wrong. I looked up the docs on git-scm.com and it says that the default branch name is “currently master, but this is subject to change in the future”. Maybe GitHub threw me off.

    • Kbin_space_program
      link
      fedilink
      181 year ago

      Because its a non issue to developers.

      It was only a hand wringing thing by internet bloggers.

    • MeanEYE
      link
      fedilink
      31 year ago

      I can’t wait for asshats to start calling for gender fluid connectors. What’s that, male 3.5mm connector, did you just assume my connectors identity?

      • TxzKOP
        link
        fedilink
        911 year ago

        yup same. I hate slavery just like anyone else but fail to see how naming a branch master has to do anything with it. Next are they gonna claim that master’s degree is pro slavery or something

          • TxzKOP
            link
            fedilink
            271 year ago

            Idk, same people who think naming git branches master is somehow pro slavery? Whoever they are

        • Deebster
          link
          fedilink
          131 year ago

          I put this one in the same camp as whichever well-meaning person came up with “happy holidays”. Other religions and cultures don’t mind Westerners celebrating Christmas, and over-corrections like this just give fuel to the “political correctness gone mad” (now re-branded as anti-woke) crowd.

          • @[email protected]
            link
            fedilink
            131 year ago

            Happy Holidays makes perfect sense. You can start saying it in early December, whereas if you say Merry Christmas in early December, you seem like you’re not very good with dates. Or maybe you’re one of those people who’s really obsessed with Christmas. I’ll say Happy Holidays until around the 23rd, when I’ll say Merry Christmas until the 26th, back to Happy Holidays until the 31st, when I say Happy New Year.

          • magic_lobster_party
            link
            fedilink
            151 year ago

            although in the context of version control, the term master simply refers to the gold master, a term borrowed from the recording industry which refers to the final mixed version of a recording, and does not have a corresponding slave.

            Either way, I think “main branch” is easier to say, so it’s a win.

  • Empathy [he/him]
    link
    fedilink
    501 year ago

    I use main because, although I never heard of anybody actually getting offended by master, it costs me nothing to use main instead. Also it looks prettier and seems to be the new convention ¯\_(ツ)_/¯

  • ToRA
    link
    fedilink
    English
    71 year ago

    For people who really think it doesn’t matter, then why does it matter so much you waste your time complaining?

  • @[email protected]
    link
    fedilink
    371 year ago

    I use main as my default branch because it’s what Git has been defaulting to for some time now

  • @[email protected]
    link
    fedilink
    66
    edit-2
    1 year ago

    Instead of either, it’s good to have a more descriptive primary branch:

    git checkout -b dontwritetothisbranchdirectlyyougottaopenaprfirstandhaveitreviewedandapprovedandthenpasstheautomatictests