Hard Pass
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sibshops@lemmy.myserv.one to Programmer Humor@programming.dev · 15 hours ago

Master vs main (again)

lemmy.myserv.one

message-square
33
link
fedilink
223

Master vs main (again)

lemmy.myserv.one

Sibshops@lemmy.myserv.one to Programmer Humor@programming.dev · 15 hours ago
message-square
33
link
fedilink
alert-triangle
You must log in or register to comment.
  • fruitcantfly@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    7 hours ago

    I’ve started converting my ‘master’ branches to ‘main’, due to the fact that my muscle-memory has decided that ‘main’ is the standard name. And I don’t have strong feelings either was

  • hotdogcharmer@lemmy.zip
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    7 hours ago

    I think ‘master’ is fine for the master branch. It’s a master copy of the codebase.

    I think ‘main’ is fine for the main branch. It’s the main branch of the repo.

    I use ‘main’ at work cos that’s what my git client defaults to. I use ‘master’ at home because that’s what my git client defaults to. 🤷‍♂️

  • Hoimo@ani.social
    link
    fedilink
    arrow-up
    27
    ·
    12 hours ago

    I use master and apprentice. Always two there are, no more, no less.

    • rockerface🇺🇦@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      7
      ·
      11 hours ago

      So that’s why Sith were considered evil

    • Captain_Faraday@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      10 hours ago

      I think will actually start using this “master” and “apprentice” now. Love it lol

    • Morose@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      11 hours ago

      Only a sith deals in absolutes, I will do what I must.

  • Lena@gregtech.eu
    link
    fedilink
    English
    arrow-up
    66
    ·
    14 hours ago

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      22
      ·
      13 hours ago

      I prefer master exactly for that reason

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      13 hours ago

      • BartyDeCanter@lemmy.sdf.org
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        What are you doing step-branch?

  • TheFunkyMonk@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    12 hours ago

    I’m fairly confident the random branches I spin off to try out a dumb idea are not equal to main.

    • Skibbidi@programming.dev
      link
      fedilink
      English
      arrow-up
      14
      ·
      12 hours ago

      I know mine are worth less than others.

  • CodenameDarlen@lemmy.world
    link
    fedilink
    arrow-up
    42
    ·
    14 hours ago

    I dislike master because main is shorter and faster to type

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      13 hours ago

      doesn’t matter: ma TAB

      • oplkill@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        9 hours ago

        Some newbie at project: git checkout -b main_problem_task123

    • Sibshops@lemmy.myserv.oneOP
      link
      fedilink
      arrow-up
      17
      ·
      14 hours ago

      The best reason is always in the comments

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    12 hours ago

    I do whatever work wants me to do. you want “main” or “icecream” as the production branch, whatever.

    I’ll keep using master for all my personal repos because it’s a master record of the source from which all other branches are derived. it’s like the difference between “read” and “read”. spelled the same but completely different definitions.

  • sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    10 hours ago

    … Has anyone adopted a ‘Master’ - ‘Padawan’ paradigm?

  • raman_klogius@ani.social
    link
    fedilink
    English
    arrow-up
    26
    ·
    14 hours ago

    Treat branches like Chinese dynasties. The mainline branch is the one having the mandate of heaven.

    • rockerface🇺🇦@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      9
      ·
      11 hours ago

      And they tend to fracture and rejoin seemingly at random, but with certain regularity

  • Sibbo@sopuli.xyz
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    14 hours ago

    Imagine the mess in a thousand people project where all branches are “equal”

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      13 hours ago

      I work on a few repos that have branches that are rarely merged to the default one and it’s quite annoying

  • xxce2AAb@feddit.dk
    link
    fedilink
    arrow-up
    26
    arrow-down
    5
    ·
    15 hours ago

    I’m… I’m not sure that’s the flex you think it is.

    • Darkcoffee@sh.itjust.works
      link
      fedilink
      arrow-up
      45
      ·
      15 hours ago

      I think it’s mostly a shitpost lol

      • digital_man@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        7
        ·
        14 hours ago

        White shitpost?

        • Sibshops@lemmy.myserv.oneOP
          link
          fedilink
          arrow-up
          9
          ·
          13 hours ago

          It just bothers me that “master” branch is a misnomer. It’s a hold over from CVS/SVN where there was actually a central authoritative branch. I’m not necessary saying the other reasons don’t have merit, as well.

          • LedgeDrop@lemmy.zip
            link
            fedilink
            arrow-up
            2
            ·
            13 hours ago

            trunk?

            • Evil_Shrubbery@thelemmy.club
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              10 hours ago

              Master’s trunk ( ͡° ͜ʖ ͡°)

            • DreamButt@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              10 hours ago

              I always rename it to “dev.” Hard to have any problems or confusion with that

      • xxce2AAb@feddit.dk
        link
        fedilink
        arrow-up
        2
        arrow-down
        3
        ·
        15 hours ago

        You’re not wrong.

  • gigachad@piefed.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    11 hours ago

    git config --global init.defaultBranch main

  • Little8Lost@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    14 hours ago

    The next release branch is the one i am currently working on. No need to merge it back to the other one

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 hours ago

    i just call my main git branches trunk

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.02K users / day
  • 4.78K users / week
  • 9.34K users / month
  • 11.5K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 458 Posts
  • 8.22K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org