• RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    23
    arrow-down
    18
    ·
    7 months ago

    Fuck those that use main. If you’re working on a library fork that has main and a project that has master you’re bound to invert the two.

    “What do you mean I can’t checkout main? Oh right, here it’s master…”

    For once that we had a standard, it had to be ruined.

    • huginn@feddit.it
      link
      fedilink
      arrow-up
      37
      arrow-down
      17
      ·
      7 months ago

      Fuck those that use master. If you’re working on a library fork that has main and a project that has master you’re bound to invert the two.

      “What do you mean I can’t checkout main? Oh right, here it’s master…”

      For once that we had a standard, it had to be ruined.

      The standard is now main.

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      7 months ago

      git checkout ma<tab>

      If you don’t have autocomplete set up for your shell, get it working. If someone has a different branch named ma..., ask if you can delete it, and get your team to adopt a decent branch naming convention.

      • Nalivai@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        7 months ago
        git checkout ma<tab>
        
        
        mai_new_chenges 
        march_deploy_second_final_final_fixed      
        main_fixes       
        mast_not_farget_to_delete_it
        
        • BatmanAoD@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          7 months ago

          …yeah, I already said that if there is another branch starting with those letters it should be deleted. You need a naming convention.

          • Nalivai@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            7 months ago

            I really wish to work in a team where people have naming conventions for branches that are concerned about stuff like that. Must’ve been a nice place to work at.

            • BatmanAoD@programming.dev
              link
              fedilink
              arrow-up
              2
              arrow-down
              1
              ·
              7 months ago

              Whoever named the “final final fixed” one seems to have missed the point of version control. 😑

    • 1984@lemmy.today
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      7 months ago

      I think the reasons was ridiculous. The fact that people didn’t like the word master anymore. But I’m used to it now, so fine, let’s use main. It makes sensitive people feel better.