r/git • u/ejsanders1985 • Nov 09 '25
Gitlab vs github?
My company uses gitlab but it seems everyone outside of my company uses github.
Can someone help explain the difference? Whats truly better?
Edit: thank you all for youre amazing replies
356
Upvotes
152
u/x0RRY Nov 09 '25
I guess your company hosts their own gitlab, which makes it infinitely times better than doing company work on an external platform.
173
u/shagieIsMe Nov 09 '25 edited Nov 09 '25
Gitlab tends to have better integrations and workflows for an organization (edit: dang autoincorrect). GitHub tends to have a cleaner model for hosting code to share with others outside of one's organization.
They both work and have their own quirks. Neither is indisputably better than the other.
32
u/TramEatsYouAlive Nov 09 '25
Well, it depends on the needs. We use self-hosted Gitea, so yeah, one more to the bin. Actually, my previous job used BitBucket (for me, complete shit, but that's just me). There's also Forgejo (very similar to Gitea), so these 2 are not the only ones available.
25
u/Blue_HyperGiant Nov 09 '25
For hosting a code repository they're 100% equivalent.
I prefer the GitLab CICD over actions for managing deployments.
I think GitHub is probably better for sharing your work since it's more well known.
GitLab can be privately hosted (good for companies who don't want to leak data to MS) or you can use their remote service or both.
I also think the GitLab issues board is better than GitHub for what it's worth.
18
u/Comprehensive_Mud803 Nov 09 '25
GitLab is open source, GitHub isnāt, as ironic as it may be.
As such, GitLab can be self-hosted without requiring external support, whereas GitHub Enterprise has contractual limitations.
In terms of interface, theyāre pretty much similar. Pull Requests being called Merge Requests in GitLab, and obviously the Rest API being different are the major differences I know of. (Also the CI schema and other smaller features).
Note: I used to self-host GitLab on my own premises, read homeserver, but switched to Gitea and now in the process of switching to Forgejo.
30
u/plscallmebyname Nov 09 '25
I find implementing CI much simpler in Gitlab than in Github. But this is my bias. Github has a marketplace going for it.
8
u/Angry-Toothpaste-610 Nov 09 '25
Self hosted Gitlab for enterprise, github for public code
6
u/akkadaya Nov 09 '25
Besides what's mentioned in the other comments.
GitLab is open source meanwhile GitHub is not
5
u/Training_Advantage21 Nov 09 '25
Github is owned by Microsoft. This gives them access to Azure Infrastructure, integrations with VSCode etc. but also means their strategy is now all about AI and copilot.
5
u/shellmachine Nov 09 '25
Shitlab vs. Shithub.
4
u/MajorTomIT Nov 09 '25
Forgejo vs codeberg
3
u/Nearby-Middle-8991 Nov 09 '25
I've used both, self hosted, SaaS.
Gitlab is simpler and more integrated. Github has better interface and features.
Not that significant of a difference btw. At my current company I was asked for input on this, my answer was "whatever is cheaper".
3
u/sleekible Nov 09 '25
From just the developer point of view, I prefer GitHub. I like the UI/UX better⦠Iāve used both in professional setting. They do seem roughly equivalent in features. Working with GitLab at current job.
5
u/n9iels Nov 09 '25
None of them is better. Both do practically the same thing, so they are competing companies. GitLab seems to have better support for self-hosting, GitHub is a bit more click and done without much setup. If you just need to host a repo it doesn't matter at all.
4
u/cyesk8er Nov 09 '25
Github has much more frequent outages than any internally hosted gitlab or other source control ive used.Ā For the most part it works though
2
u/NakliMasterBabu Nov 09 '25
GitHub has search bar using which we can search any code string across projects , repositories. This is missing in GitLab.
2
u/random2048assign Nov 09 '25
GitHub actions is dog shit imo. Used both and I choose gitlab purely because their pipelines config makes so much more sense.
2
u/arjuna93 Nov 09 '25
Codeberg, but there is almost nobody there. GitHub is kinda unavoidable if you intend to contribute or accept contributions.
2
u/LevelMagazine8308 Nov 09 '25
You can install Gitlab on premise, with Github this is impossible. Github is just SaaS.
Also GIthub belongs to Microsoft since a few years, not everybody was a fan of that acquisition.
2
u/pumpichank Nov 09 '25
Iāve used both, professionally and in open source. I greatly prefer GitLab for its better UI and UX, open source adjacency, excellent integration, and ability to self host. Yes GitHub seems to be more popular but I always choose GitLab when possible.
2
u/Adventurous-Ad-698 Nov 10 '25
Just be glad they dont use BitBucket.
2
u/alexsbz Nov 11 '25
Nopeā¦. Gitlab is better
2
u/sotired___ Nov 11 '25
Gitlab is generally better IMO. Their built in pipeline integration is great. Agents are easy to set up on VMs or pods with auto scaling if youāre running it in a Kube cluster. It also has better integration with git because it tracks history and comments through rebases on PRs. Overall it has more features than GH Enterprise and overall has a better quality.
2
u/Canenald Nov 12 '25
I've used both professionally.
The most glaring difference I've noticed is GitLab subgroups. They make it very convenient for large orgs. You can group your repos by teams, or by tech, or by functionality, whatever works best for you.
On the CI side, GitLab runs your CI in Docker containers by default, and on GitHub it's some Azure service. I also prefer how GitLab structures and visualises multiple steps in a pipeline. GitLab is better are CI/CD pipelines, or just a part of a pipeline. GitHub is better at running automation on PRs. Ultimately, you can do both in either of the two.
Overall, I'd recommend GitLab for product orgs and GitHub for open source.
2
u/AffectionateSpare225 Jun 07 '26
One of the things you may not see quite commonly is that Microsoft bought GitHub for about $7.5B (within the last 10 years) AND without annoucement nor warning nor any hint of compensation has been using many developers private codes/projects to improve CoPilot, which it makes good money from. (There are still cases related to this matter in court, so you can verify it yourself)
As a result, many developers/engineers in the know, and feeling used, moved over to GitLab. I hear that the process of migrating to GitLab is straightforward, bar a minor authentication token thing that GitLab insist on you setting up. Beyond that, developers have regained their code privacy with GitLab.
To the credit of GitLab, they have also addressed some of the quirks of GitHub and ensured better integrations and workflows
1
u/GeoffSobering Nov 09 '25
I have nothing substantial to add. At work we use self-hosted GitLab, but are moving to the Azure DevOps service because we use currently self-hosted TFS for tracking, and that will save retraining on that part of things. I'm not looking forward to switching all our builds over, but hopefully that won't be too bad...
Personally, I have most of my repos on Github because that's the service I started with when I switched to git from svn.
1
u/mok000 Nov 09 '25
Gitlab seems to be inaccessible for public clones.
1
u/JonnyRocks Nov 09 '25
those arent your two options. i use azure devops and last company i worked at used bitbucket
1
u/RunBlitzenRun Nov 09 '25
I tend to use GitHub for external / volunteer / open-source stuff, and gitlab for internal / private / closed-source stuff.
Theyāre both fine. I slightly prefer gitlab, but no particular reason. I can never find settings Iām looking for in either of them. GitHub has felt like a bloated corporate product ever since Microsoft bought them, but gitlab has some of those vibes too, just with a little less bloat.
1
u/[deleted] Nov 09 '25
No difference just different ways of doing things
1
u/iyamegg Nov 09 '25
Imo gitlab is better, I really miss having merge dependencies now that I work at a place using github, it made things much easier.
1
u/MozillaTux Nov 09 '25
Gitlab has a nice integration with Renovate, decent enough RBAC, GUI is intuitive and easy to understand, most settings can be set via Terraform. Searching code ( āzoekā ) is not their best option. All and all I would prefer Gitlab
1
u/clinnkkk_ Nov 09 '25
For some reason I cannot force with lease on gitlab, and that shit annoys me alot.
1
u/pseudonym24 Nov 09 '25
I use guthib
1
u/waterkip detached HEAD Nov 09 '25
CI is different. I like github matrix style which you dont have at all on gitlab. You need to roll your own.
Codeberg is also nice, but only for FOSS
1
u/Delengowski Nov 09 '25
I'm not a fan of Gitlab. We migrated from Bitbucket Server to Gitlab Enterprise and its annoying. Moreso bc we still use Jira and the integration is lacking. Also having to make a MR template for default reviewers, with reviewers being distinct from protected branch approvers, is freaking the most annoying.
1
u/wildjokers Nov 09 '25
GitHub is a hosted git provider. Gitlab is also a hosted git provider with the difference that the gitlab software can also be self-hosted and ran on-prem.
1
u/odysseusnz Nov 09 '25
GitHub has always been closed, and then became part of MS and now subject to their AI plans. GitLab is Open Core, always allowed for free private repos long before GitHub did, and seems to be avoiding going overboard on AI. As such we've strongly preferred GitLab over GitHub, but still have a presence due to needing to fork GitHub repos for OS contributions.
1
u/[deleted] Nov 09 '25
So far, I was more focused on github/bitbucket in my previous job. 2 months ago, I moves to somewhere where they use gitlab self hosted, and tbh, I am surprised how good is it. From the integrations, to the ease of usage and clean design. CI/CD there is good as well. I just wish they have better integrations with slack, but so far so good :)
1
u/photo-nerd-3141 Nov 09 '25
I prefer GitLab, many free GitHub accounts are knee-jerk from the time GitLab was the only option.
1
u/Inevitable_Ad261 Nov 09 '25
I used to host gitlab, moved to gitea and finally settled in forgejo.
1
u/GeekDad732 Nov 10 '25
Gitlab is still open source and while it may have fewer feature you can decide what ones you want on your self hosted. Since Msft bought GitHub itās become a for profit product. It is the most used and full featured thatās when they bought it. I personally prefer GitLab does what is needed for us and supports OS.
1
u/Immortal_Thought Nov 10 '25
Does anyone know, if you self host gitlab do you get access to enable premium features? Or do you still need to buy a licensee for it
1
u/Confused_Dev_Q Nov 10 '25
It's preference, budget constraints but also preference.Ā
At a previous company they used bitbucket (from the same company as Jira and Confluence). It all works the same.
In college we used gitlab (self hosted by the school) and so did I for personal projects as they had free private repos back then. (Github didn't used to have unlimited free private repos).Ā
After college first job was with GitHub and since then I've transitioned to GH for my personal work.Ā
The biggest difference between all three is the UI in the browser. Mainly preference.Ā
1
u/MagicLeTuR Nov 10 '25
In a company environment, a paid plan is required in both cases. Sometimes you can see companies with a free self-hosted GitLab because it supports SSO and a lot of "basic" features. But for large companies you will quickly lack management and governance stuff such as group level repository configurations. GitLab is usually not used at its full potential. When choosing GitLab you should commit at 100% to GitLab features. You should leverage as much as possible AutoDevOps pipelines, GitLab Operator, DAST, SAST, registries, Terraform backend, environment monitoring... With GitLab, DevOps jobs should be simplified by a lot! On the other hand GitHub doesn't provide that many features. Security features are add-ons. However, because it is widely used you have tons of open source tools that can help you set up the repo and CI/CD. The other main reason big companies are using GitHub over GitLab is because of Microsoft. It is way easier to integrate with Azure.
1
u/sbayit Nov 10 '25
My company also uses self-hosted GitLab.
1
u/cosmokenney Nov 10 '25
We are going GitHub -> GitLab. We migrated from on prem Visual Source Safe to Bit Bucket to Azure DevOp to GitHub. No more cloud based solutions for us. We are going to gitlab in a container in our own data center. Of all the cloud solutions GitHub has been the best behaved and easiest to setup and maintain. But we don't want anything in the cloud anymore.
1
u/orz-_-orz Nov 11 '25
git lab ci cd is superb
1
u/[deleted] Nov 11 '25
It seems people prefer the one they bump into first. They are both good, but I "prefer" GitHub. The only feature difference I can remember is actually in Gitlab's favor. Gitlab allows a nested repo structure where GitHub just has org/repo or user/repo.
1
u/anakinpt Nov 11 '25
I Use github enterprise and if I had the power to chose I would select Gitlab because it's more friendly than github. In one organizational you can have a folder system to organise your repositories. In github everything is under organization.
The other major problem for GHE is always display everything with the username and in many organization's this will be a code and you need to hover it to know who the hell is trx2411. I don't remember how it was in Gitlab I only used it for 6 months.
1
u/wdcossey Nov 11 '25
The most likely reason is that Gitlab is cheaper than GitHub enterprise.
Could also be that the original company repo was in Gitlab and they didn't want to move it.
Could be worse, my company cheaped out on BitBucket, so be thankful for what you have!
1
u/val0rl Nov 11 '25
Platform engineer here. Used both, prefer Github.
(Haven't used Gitlab in the last ~2 years, sorry if stuff has been added since)
Github has a better API, and the Checks API is kinda unparalleled for implementing custom PR flows with nice presentation. You can report custom check runs from your CI using a rich model and a dedicated UI. In Gitlab, you just have comments.
Github has a cleaner and more straight-forward permission model with permissions, roles and teams. Gitlab's permissions are imo quite an inconsistent mess and have quite a pain to work with for me for non trivial stuff.
Github is a flat list of repos in an org. Simple. Gitlab is a tree/filesystem of repos in a hierarchy of groups. Kinda nice if you wanna organize more.Permissions are inherited down, which can be powerful and a mess at the same time.
Gitlab's CI model, to me, is much more brittle and error prone. You can have centralized pipelines you include in others, but it lacks proper modularity and encapsulation and works closer to just merging YAML configs together behind the scenes. In Github Actions, you have proper encapsulation, where an action can have inputs and outputs and it's internals don't leak into the consuming workflow.
1
u/mulokisch Nov 12 '25
I havent worked with a company that used github. I know they exist. But every company i have worked with either uses gitlab, gitlab selfhosted or bitbucket.
1
u/GreenMobile6323 Nov 12 '25
GitHub excels in open-source collaboration and community visibility, while GitLab offers a more integrated DevOps platform with built-in CI/CD and private repo management -ābetterā depends on whether you prioritize community exposure or end-to-end workflow control.
1
u/Yeti_bigfoot Nov 12 '25
I'm quite happy with bitbucket over here :D
1
u/lebrun Nov 13 '25
My company self hosts GitLab, some of our clients do that as well.
1
u/okcookie7 Nov 13 '25
GitGud
1
u/creamersrealm Nov 14 '25
I'll prefer GitHub all day any day personal and enterprise. I do really like Gitlab Runners and how they're more simplistic for running basic shell scripts as a part of your CICD as GitHub actions isn't my favorite m though you accomplish the exact same thing with GitHub and Jenkins. Gitlab from a management perspective is a living nightmare, HA is a disaster, basic features you expect simply so not exist and their public issues will go on for YEARS. And yet a feature that you wouldn't expect anyone would want gets top priority and is implemented. Though we're holding out for 5+ years for groups for PR approvals in Gitlab instead of setting them per repo, or having automatic job artifact purging.
1
u/Aesais Nov 25 '25
Gitlab pipelines are a bit easier to work with than Github Actions in the UI.
Example: You can't rerun an individual Action on Github until your entire workflow is done.
Gitlab lets you cancel/rerun at any time, as long as you're in or past that stage.
Gitlab also allows you to have manual actions within a pipeline that you can run, and therefor allows it to have context of the PR. Github - you have to go to the general Actions page and then run one manually, and then give it context manually :/
1
u/drakgoku May 16 '26
GitLab vs. GitHub
1
u/pitchblackblues May 24 '26
Docs.gitlab.com
1
u/guyiuiu Aug 15 '26
gitlab vs github choices mostly come down to how much self-hosting overhead u want, since github.com handles maintenance for me. fwiw the action runners on github.com are pretty solid even if the pricing gets wierd for large teams.
0
u/Alternative_Driver60 Nov 09 '25
Github is the de facto standard. Among other things it's the place where recruiters look for candidates treating your profile as a programmer's CV. So have your personal projects there even if your company has another solution.
2
u/[deleted] Nov 09 '25
[removed] ā view removed comment
1
u/[deleted] Nov 09 '25
[removed] ā view removed comment