Another “Differences in Linux” question :)

I often wonder, what exactly is the difference between this services?

I understand, that:

  • github.com is a company, where as gitlab and forgejo are (softwares)?
  • They all “manage/wrap/interface with” git?

Questions:

  • what software does github.com use?
  • whats the difference between them (pros/cons)?
  • what about self-hosting? Possibilities/Preferences?

As always, thanks beforehand :)

  • vane@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    21 hours ago

    There is no difference in core of those services, all of them are visual interfaces for file versioning software called git. You can easily use git without any of these services. If you’re starting to explore those technologies I personally recommend getting used to git and ssh. You can read more here on how to use git and ssh https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server

    Answers:

    • Github was initially written in ruby.
    • The difference is memory usage, complexity of depoyment, compatibility with github features, maintenence and community support.
    • Self hosting depends on various factors like usage preferences, number of users, business requirements, budget, hosting machine processing power, and amount of time you want to spend for maintenence and learning the platform.
  • bonno@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    22 hours ago

    I’m using gitea to host my code and store issues

    I’m combining this with jenkins for CI/CD -> push commit in gitea -> jenkins autostarts build/deploy -> commit status (build/deploy failed/ok) visible in gitea

    All selfhosted with portainer and docker images on a hetzner server in finland but you can easily do it on a home-server too

    pretty happy with this setup - I might have a look at forgejo iso gitea as it’s more open source and I wasn’t aware of it when I chose gitea a year ago

    then again I’m pretty happy with my setup now

  • Patch@feddit.uk
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    2 days ago

    Git is the underlying code management and version control system. It can be used directly, and also forms the backend to a number of other systems.

    Code “forges” are platforms which integrate a version control system (like git), a code repository (a file server), and front end utilities.

    Some git forges are open source, others are proprietary. Certainly with the open source ones, but also with the proprietary ones in some cases, you can either self-host or use a hosted service.

    GitHub is a proprietary forge, and GitHub.com is the company’s fully hosted service. They’re now owned by Microsoft.

    Gitlab is an open source forge. Gitlab.com offers a hosted service, but many projects self-host.

    Forgejo is a fork of Gitea which is a fork of Gogs. These are all also open source. As far as I know, neither Forgejo nor Gogs offer a hosted version, but Gitea does.

    A few other notable forges include GNU Savannah (open source), Bitbucket (proprietary), Sourceforge (proprietary), Launchpad (open source), Allura (open source).

    At the end of the day, they all do the same thing. They have different feature lists (especially around some of the project management and user interaction side), different user interfaces (some are shinier and more modern, others more minimalist), and different communities and support models. You choose that one that works best for your needs.

    GitHub is probably the most feature-rich (and/or bloated) of them. GitLab is competing in the same space, and self-hosted GitLab seems to be something of a sweet spot for many projects that want a premium experience without needing to use a proprietary Microsoft product. I don’t have much experience with Forgejo or Gitea. The rest tend to exist in their niches.

    • variety4me@lemmy.ml
      link
      fedilink
      arrow-up
      12
      ·
      edit-2
      2 days ago

      As far as I know, neither Forgejo nor Gogs offer a hosted version, but Gitea does.

      Forgejo hosted version is https://codeberg.org/ which is my code forge of choice. I also have a self hosted private forgejo mirror of my public codebeerg repos.

      Edit: spellings

      • a Kendrick fan@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        18 hours ago

        Forgejo hosted version is https://codeberg.org/ which is my code forge of choice

        Same here and I’m happy with that

        i’ve heard that they’re quite hostile to piracy stuff , but it’s also easy to self-host

      • iriyan@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        gittea is also a company now, forgejo is open and free, trully free

        other than codeberg disroot has been running forgejo too I wouldn’t want to use anything but forgejo

        • toastal@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          Truly free… yet in its fork of Gitea it is copying more Microsoft GitHub features like Action YAML spaghetti instead of offering an improvement. Instead of being a better offering than Microsoft, they are cloning even more features where it is even more of a hard sell IMO by not offering anything new in the experience.

          • iriyan@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            The difference with a small group of devs writing code and offering it free and corporate thugs treating coders like sponges to produce code is the lack of resources can be understood and forgiven. Take a project like brave-nightly (browser fork of glugle-elechrom) there are 3-5-8 new releases a day, 8-6 Pacific US time, when they go home on Fri. the next release is Monday afternoon, the “free” coders usually begin work Friday night and end Monday at dawn!

            Sure, corp.XYZ sends them an offer one day and buys their work and even offers them incentives to work for them, then it all goes down hill!

            It ends up being as nasty racist and ethnocentric as kernel.org.com - us state dept fed and controlled

    • toastal@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      GitLab is open core, not open source. It is also a publicly-traded company in the US that does have shareholder obligations—which should cause some sort of long-term hesitation. It does have a better CI/CD system than the Microsoft product & the community edition can be self-hosted.

  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    Note that Git also isn’t the only distributed version control system (DVCS); there maybe be other alternatives out there for you not just in code forge but the system underneath it too.

  • 0x0@programming.dev
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    2 days ago

    GitHub is a company owned by Microsoft (in the USA). They allow you to host git repositories there (a git forge) and they use your code to train their AI.

    GitLab is another git forge, you can also host your code there. I think it was also bought off.

    Forgejo is git forge software. If you want to use a git forge that relies on Forgejo, checkout CodeBerg (based in Germany). Forgejo is a fork of Gitea, which is a fork of Gogs.

    <rant> All of these tend to offer not only a git forge but also other crap like tickets and CI/CD in what i personally see as feature creep. </rant>

  • dino@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    2 days ago

    Don’t use github/gitlab for small private repositories! use codeberg.org if you are not a developer. If you are in need for a big more jazz and looking at self-hosting go for forgejo.

  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    3 days ago

    Forgejo. ♥

    Github uses its own proprietary platform which it resells, Github Enterprise.

    Gitlab uses a FOSS alternative engine, but IMO it’s super heavy for 90% of use cases.

    Forgejo checks all the right boxes. Lightweight. FOSS. Still not convinced? Check out Gitea.

  • solrize@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    3 days ago

    Github: Microsoft code hosting site that feeds all your code through AI training and tries to lock you in through their pull request and related machinery. Once used a motto like “social coding”, but let go of that when they realized Facebook for nerds didn’t sound that great. Software is mostly proprietary besides Git itself.

    Gitlab: 1) a Github competitor (gitlab.com, code hosting site with somewhat similar features; 2) the software for that site, huge and bloaty and slow, written with Ruby on Rails. You can self host it if you want, but yecch.

    Forgejo: Git front end software, fork of Gitea and/or Gogs. Small and fast and written in Go. Fewer features than Github or Gitlab. If you want to self-host, I’d use this or some variant. Quite easy to install and run.

    Gitweb: comes with git, pretty rudimentary but has old school attractiveness at least for me. Really just a browsing interface. No pull requests or anything like that.

    Git, just plain Git: if you are self-hosting a project for yourself and maybe a few friends/collaborators, it’s fine to just use git with no web stuff, and push/pull by ssh. You’d manually install account credentials for your friends. This is really the simplest, but NO fluffy UI or other creature comforts.

    Fossil: amazingly small and fast alternative to all the above (fossil-scm.org) but uses its own VCS (Fossil) that doesn’t interoperate with Git. I think the author said he might convert it over sometime. It’s written in C! Uses sqlite as repo backend instead of the file system like git uses. Has built in wiki, bug tracking, documentation viewer, etc. and used about 2MB of ram last time I tried it, ridiculously small (Gogs used around 40MB and Gitlab uses gigabytes).

    Sourceforge (sf.net), very old school code hosting site, not of much relevance any more. They released an old old version of the software a long time ago and that got forked to become Savannah.

    Savannah (savannah.gnu.org) hosting site for GNU and related software. Also savannah.nongnu.org for non-GNU stuff in the same spirit. I don’t know the exact criteria for putting stuff on nongnu but I think it’s on a project-approval basis, rather than letting everyone upload whatever they want.

    Darcs (darcs.net), another alternative to git, better in some ways, written in Haskell, lost most of its users after a self-inflicted footbullet around 5y ago. There was a hosting site (darcsweb?) for it but that looks to be gone now.

    There are a few more of them too, none of much importance these days even though some were interesting.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 days ago

    All three are web based frontends for git repositories; you use git to send and receive code to/from them for storage and sharing. They all also provide other things useful to developers such as issue tracking, wikis and such. They are different products that fulfill the same role.

    what software does github.com use?

    It’s all proprietary software (presumably) written in-house. We don’t have access to it.

    whats the difference between them (pros/cons)?

    Github:
    Pro: Wider reach, everyone knows about Github.
    Con: Proprietary; your code is hosted based on the whims of Microsoft.

    Forgejo:
    Pro: Open source, selfhostable. There’s a big instance on https://codeberg.org/ which a lot of open source projects are starting to move to.
    Con: It’s smaller and not as well known as Github. In theory it may also lack features, but I’ve not seen any that have gotten in my way.

    Gitlab:
    Pro: It’s… I guess in second place in terms of popularity? It’s also selfhostable.
    Con: It’s one of those open source projects with paid closed source features, so not really appealing to either group. It’s also had questionable management decisions recently.

    what about self-hosting? Possibilities/Preferences?

    If you want to selfhost a git server, I’d recommend Forgejo; it seems to be the most friendly towards the open source and selfhosting communities.

    • Rogue@feddit.uk
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 days ago

      @dengtav@lemmy.ml

      This answer is probably the best here. It’s concise and answers your questions in a reasonably unbiased way.

      A lot of the other answers are dripping with personal bias and a few verging on conspiracy.

  • Shareni@programming.dev
    link
    fedilink
    arrow-up
    14
    arrow-down
    2
    ·
    3 days ago

    Another “Differences in Linux” question :)

    Dafuq does a comparison of git hosting services got to do with Linux?

  • dallen@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Gitlab pipelines are super nice to use and integrate nicely with merge requests.

    I like the Github UI, clean and simple, but down like what comes along with it…

    Interested in self hosting forejo but I’m mostly coding at work these days.

  • Anna@lemmy.ml
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    2 days ago

    If you are a developer then no difference if you’re a scrum master then you need to gtfo

  • PassingThrough@lemm.ee
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 days ago

    Others are posting the well written explanations, so I’ll make the short comparisons.

    GitHub is like Reddit is to Lemmy. It’s the main player in source code hosting, proprietary and centralized to the profits and whims of Microsoft. But for that cost, you can easily bet a project you are looking for has a presence there, and it’s easier for a dev to pop from project to project with one account and identity.

    The others are like Lemmy, meant for hosting your own GitHub-like website with all the bells and whistles on top of the standard Git codeshare. There’s a lot of feature parity, though some softwares have more than others. But it comes at the cost of obscurity, Codeberg is a big player but any instance you find is isolated, and any devs you entice to help you need to register additional accounts personal to that instance. And the hosting costs are on you, it can all vanish with an unpaid domain/server bill unlike the central giant of GitHub.

    • d_k_bo@feddit.org
      link
      fedilink
      arrow-up
      7
      ·
      3 days ago

      But it comes at the cost of obscurity, Codeberg is a big player but any instance you find is isolated, and any devs you entice to help you need to register additional accounts personal to that instance.

      It should be noted that Forgejo is working on implementing federation using ForgeFed, which is based on ActivityPub.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      3 days ago

      You mean Gitea? Forgejo is a fork from it, maintained by a non-profit, so preferrable to most folks.

    • sorter_plainview@lemmy.today
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      IIRC it’s just a clone of Gitea. Default interface is Chinese. Why would a non chinese person go there when Codeberg and Forgejo is available in English?

    • beerclue@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      First time I heard of Gitee, I don’t think it’s that popular. Also, their website appears to be in Chinese only.

      Gitea on the other hand is pretty popular, but after some controversial decisions, Forgejo was born and it started getting a lot of traction.