# GitLab

> A platform for hosting code, reviewing it and shipping it, often self-hosted.

- Level: Intermediate
- Topics: Tech companies, Software
- URL: https://tidbit.legios.com.ar/gitlab/
- In Spanish: [GitLab](https://tidbit.legios.com.ar/es/gitlab/)

**GitLab** is a platform where software teams keep their Git repositories and do everything around them: plan work in issues, propose changes through **merge requests** (what GitHub calls pull requests), review code, and run CI/CD pipelines that test and deploy it. It started in 2011 as an open source project by Ukrainian developer Dmytro Zaporozhets and became a company, GitLab Inc., a few years later.

Its pitch is a single application for the whole software lifecycle. **GitLab CI/CD** is built in: you add a `.gitlab-ci.yml` file to the repository describing the steps, and runners execute them on every push. On top of that it adds security scanning, a container registry, package hosting and project management.

The other big difference with GitHub is where it runs. You can use the hosted service at **GitLab.com**, but many banks, governments and large companies install GitLab on their own servers so their code never leaves their network. It follows an open core model: the Community Edition is open source, and paid tiers add enterprise features. The company is known for being fully remote and for publishing its internal handbook online.

## An analogy

A workshop where the parts shelf, the review table, the test bench and the shipping dock are all in the same room, and you can choose to rent it or build an identical one in your own backyard.

## Keep in mind

- Hosts Git repositories with issues, merge requests and code review.
- CI/CD is built in, configured with a `.gitlab-ci.yml` file.
- Can be used as a service or installed on your own servers.
- Open core: a free open source edition plus paid tiers.

## Go deeper

- [GitLab Docs (official)](https://docs.gitlab.com/)
- [GitLab on Wikipedia](https://en.wikipedia.org/wiki/GitLab)

## Related terms

- [Git](https://tidbit.legios.com.ar/git/): A time machine for code: every change saved, by whom and why.
- [Code review](https://tidbit.legios.com.ar/code-review/): Having another person read a code change before it becomes part of the product.
- [GitHub](https://tidbit.legios.com.ar/github/): A website where teams store their code with Git and work on it together.
- [CI/CD](https://tidbit.legios.com.ar/ci-cd/): Automation that builds, tests and ships every code change, so releases become routine.
- [Deployment](https://tidbit.legios.com.ar/deployment/): Getting a new version of software from the team's computers to real users.
- [Open source](https://tidbit.legios.com.ar/open-source/): Software whose code anyone can read, use, change and share.
- [Amazon ECR](https://tidbit.legios.com.ar/amazon-ecr/): A private warehouse on AWS for your container images, ready to be deployed.
- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
