• madsen@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    ·
    edit-2
    1 year ago

    No, that’s not quite how git works. Everyone who’s cloned the repo has a complete copy of the code — at least at the time they cloned/checked it out. If GitHub, Gitlab, BitBucket or whatever goes away, you can keep working without it, provided that people know how to use a remote from another machine. Git really is decentralized even if people tend to use it in a centralized fashion.

    Edit: Spelling.

    • james@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      I agree with both of you (not sure why the one got so many downvotes).

      Git is not centralized. GitHub, GitLab, Bitbucket, Gitea, is a centralized server.

      These services are more than just git repositories. They’re issue tracking, merge/pull requests, wikis, CI/CD, etc. If the service is lost, the source is still out there but it could be quite the pain to get going again.

      • madsen@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        You’d still have a complete copy of the current HEAD, you’d just be missing a bunch of history depending on the depth at which you cloned.

    • Rooki@lemmy.worldM
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      It is supporting my point btw. The internet is federated then. For example: “With my copy of a meme is a complete copy too. If Lemmy goes away it keeps working without it. And i can share it al along :)” If git(hub) is federated then is everything on the internet too.

      • madsen@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        It’s really not. In your example, the meme would be decentralized — not “the internet”. Also, I think you’re confusing “git” with services offering “git and more” such as GitHub, GitLab, etc.

        • Rooki@lemmy.worldM
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Yup. Thats my point. GIT IS DECENTRALIZED NOT FEDERATED.

          :D You said it yourself

          • madsen@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Literally no one but you has used the word “federated” in his thread of comments… You responded to the original comment about git being decentralized by saying “it’s still 1 centralized server that has the code”. I corrected you, because that’s not how git works, and now I’m not sure what the fuck you’re on about…

            Edit: Screenshot, in case you forget.

            • Rooki@lemmy.worldM
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              Sry i was wrong XD lmao. I thought you wanted to proof that git is federated