• velindora@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    15
    ·
    19 hours ago

    Git borrowed the term “master” from BitKeeper, the proprietary tool the Linux kernel used before Git existed.

    In BitKeeper, a “master repository” referred to the authoritative repository in a set of distributed clones. When Linus Torvalds created Git in 2005, he followed that naming convention and called the primary branch “master”.

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        5 hours ago

        The trunk metaphor doesn’t work very well in Git, because branches aren’t long-lived containers of sequential commits the way they are in SVN. There is no “root” commit that is guaranteed to have a consistent relationship with main, because branches are just names attached to a commit and can be reassigned at will.

    • rozodru@pie.andmc.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      15 hours ago

      huh I always assumed it was just taken from how HDD’s used to work back in the way if you ran multiple on your machine. you had to designated on the motherboard and/or HDD which hard drive was the “Master” and which was the “Slave”