• mobyduck648@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    2 days ago

    When people say git is distributed, they mean that your repo is the whole repo; it has a complete history in it as much as any repo and you can do all your usual operations offline if you want to. Origin isn’t special, it’s just the default name for one remote. It’s specifically not a client/server arrangement like SVN.

    • fruitycoder@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      Right?! I have several “remotes” on most of my repos, and the fact that I have separate clones on a few machines means I have a lot of redundancy tbh

    • ozymandias117@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Although, Google’s repo tool (horrible name) does shallow clones by default, making it more client/server oriented…

    • aesthelete@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      4
      ·
      1 day ago

      When people say git is distributed, they mean that your repo is the whole repo; it has a complete history in it as much as any repo and you can do all your usual operations offline if you want to.

      This umm, is not true either. You have the whole history of a branch or a half dozen branches, but you don’t have everything origin has unless you really wanted to clone the entire repository. Most clones are just of the main branch.