• agent_flounder@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    17
    ·
    edit-2
    11 months ago

    That…isn’t quite right.

    Git is a distributed version control system for software development^1.

    Version control allows you to manage code versions and changes to code. You take snapshots, so to speak, of every change you make.

    Distributed, in this context, means multiple developers can write code on each of their development computers and merge the changes, usually to a centralized git server.

    GitHub runs a web-based git server at GitHub.com so teams can store their code in a central location on the internet.

    1. Ok, technically, even though It’s often used for software source code, it can be used for any set of files and directories.
    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      33
      arrow-down
      1
      ·
      edit-2
      11 months ago

      I don’t see anything you said that it isn’t quite right.

      Porn is a distributed form of entertainment.

      Porn allows you to get your rocks off. You take views, so to speak and do your thing.

      Distributed, in this context, means multiple enjoyers can watch porn on each of their entertainment computers and share the videos, usually to a centralized porn server.

      PornHub runs a web-based porn server at pornhub.com so viewers can store their porn in a central location on the internet.

        • spiderplant@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          In this analogy it could be that:

          • the filesystem is git and the porn is source code
          • the file is git and the data is source code
          • you don’t consider the source code because you can host anything on github
          • we shouldn’t be reading into the analogy this deeply because its a silly analogy meant for absolute beginners
    • kernelle@0d.gs
      link
      fedilink
      arrow-up
      11
      ·
      11 months ago

      If you read it as “a website providing a service, but that service is also available elsewhere” the analogy makes perfect sense.

      • agent_flounder@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 months ago

        Git is a tool. GitHub is one implementation of a git server. Git is used to manage source code. GitHub hosts / manages source code.

        Porn is content. Pornhub is one service that hosts content. Porn is not a tool. Git isn’t content. Source code is content.

        So porn isn’t really analogous to git.

        Maybe a better analogy would be… Git is to GitHub as outlook mail client is to outlook server–or Gmail app to Gmail server.