# GitLab

> Store your project’s code online and set up checks that run automatically when someone proposes a change.

Web page: https://buildladder.com/tools/gitlab

A team might want every change to its booking form to pass the same tests before customers see it. GitLab keeps the code and its history together and can run a sequence of jobs called a pipeline.

Start with one check, such as whether the website builds successfully. Propose a small edit in a merge request and open the pipeline result. You and a teammate can review the wording and the result of the check in the same place.

- Made by: GitLab
- Official site: https://gitlab.com
- Cost: Free plan with 400 compute minutes a month and 10 GiB of storage. Premium is $29 per person a month, billed yearly, as of November 2026.
- What you need first: An email address to make an account.
- Who it helps: When your team, school or company already uses GitLab. It works with Git the same way GitHub does.
- When to skip it: If you want your work on the BuildLadder Leaderboard. It counts GitHub activity, so work saved only on GitLab doesn't show there. Also, on the free plan, a private group (a space a team shares) can have at most five people.
- Updated: 2026-11-10

## Save your code on GitLab

Put your product on GitLab so a copy lives online. Then change things on a branch, open a merge request, get a review and merge it into main.

What you’ll end up with: Your product is in a private GitLab project. You know how to change it safely on a branch and merge it into main.

### You’ll need

- A website or app in a folder on your computer.
- Your AI tool, set up and working in that folder.
- GitLab account (https://gitlab.com/users/sign_up): The free plan has 400 compute minutes a month and 10 GiB of storage, and needs no card, as of November 2026

### Your part

- Make your GitLab account and sign in.
- Create the project and choose Private.
- Read the review of each change, then press the merge button.

### Step 1 of 6: Create a private project

This step is mine to do. Walk me through it, one action at a time:
- Go to gitlab.com and sign in. If you don’t have an account, go to gitlab.com/users/sign_up and follow the prompts.
- In the upper-right corner, select Create new, the plus icon, then New project/repository.
- Select Create blank project.
- Type a Project name, like my-site. Next to it, check that the address uses your own username.
- Under Visibility Level, choose Private.
- Leave Initialize repository with a README off. Your product already has files, and an empty project takes them without a clash.
- Select Create project.

It worked when: GitLab shows your empty private project, with a page that explains how to add your files.

Keep for later: The address that ends in .git, under Code or on the empty project page, for “Upload your code with your AI tool”.

If something goes wrong:
- The address uses a group name, not your username. Pick your username in the address list. On the free plan, a private group is limited to five people, while your personal projects are not.
- GitLab offers you a trial of a paid plan. You don’t need it. The free plan is enough to save your code and merge changes.

### Step 2 of 6: Upload your code with your AI tool

I made an empty private project on GitLab for this product. Ask me for its address, the one that ends in .git.

Then, following GitLab’s current docs:
1. Check that .env and any other files with keys are listed in .gitignore. Show me file names only, never key values.
2. If Git isn’t set up in this folder, set it up with main as the branch name. Save a first version (a commit) with a short note.
3. Connect this folder to my GitLab project under the name origin.
4. Push main to origin.

If GitLab needs me to sign in, set up the GitLab CLI and run glab auth login with the browser sign-in, and let Git use it. Let me do the sign-in myself.

Explain each step in plain words before you run it.

It worked when: Your product’s files show on your project page on gitlab.com.

Before we move on, check with me:
- Is .env missing from the file list, as it should be?

If something goes wrong:
- The push is rejected. The project may already have a README. Tell your AI tool: “The push was rejected. Get what’s on GitLab first, then push again. Don’t force it.”
- Your password doesn’t work when Git asks for it. With two-step sign-in turned on, GitLab won’t take your password here. Tell your AI tool: “Set up the GitLab CLI and run glab auth login with the browser sign-in.”
- You can see .env on GitLab. Make new keys at each service now, because anyone who can see the project can read the old ones. Then ask your AI tool to remove .env and add it to .gitignore.

### Step 3 of 6: Make a change on a branch

I want to try a change without touching main. The change: a small fix or feature you can see, like a new line of text on the home page.

1. Make a new branch with a short name that says what the change is.
2. Make the change on that branch, and show me how to see it on my computer.
3. When I say it works, save it as a commit with a short note.
4. Push the branch to origin.

Tell me the branch name when you’re done. Don’t merge anything into main.

It worked when: Your project’s Branches page, under Code, lists a new branch with your change, and main is unchanged.

If something goes wrong:
- The change went straight onto main. Tell your AI tool: “That went onto main. Move the change to a new branch, and put main back how it was.” Do this before you push.

### Step 4 of 6: Open a merge request

This step is mine to do. Walk me through it, one action at a time:
- In your project’s left sidebar, select Code, then Merge requests.
- In the upper-right corner, select New merge request.
- Choose your new branch as the source branch and main as the target branch.
- Select Compare branches and continue.
- Type a title that says what changed, and a short description of why.
- Select Create merge request.

It worked when: You see a merge request page with your title and a Changes tab.

Before we move on, check with me:
- Open the Changes tab. Do you see only the change you asked for?

If something goes wrong:
- It says a merge request already exists for this branch. Each branch can have only one open merge request. Follow the link GitLab shows to open it.
- The changes include things you didn’t ask for. Tell your AI tool: “The merge request has changes I didn’t ask for. Explain each one, and undo the ones we don’t need on this branch.”

### Step 5 of 6: Get the change reviewed

Review the changes on my branch compared with main, like a careful reviewer would.

List anything that could:
- break something that works now
- leak a key or private data
- fail for some visitors, like on a phone or with no internet
- be simpler

Sort them from most to least serious, and explain each one in plain words. Don’t change anything yet. Then ask me which ones to fix. Commit and push each fix to the same branch.

It worked when: Your AI tool lists problems, most serious first, or says that nothing needs fixing.

Before we move on, check with me:
- Do you understand each problem in the list?
- Are the fixes you chose now in the merge request?

If something goes wrong:
- The review lists something you don’t understand. Ask your AI tool: “Explain that problem as if I’ve never coded. What could go wrong for a visitor?”

### Step 6 of 6: Merge it into main

This step is mine to do. Walk me through it, one action at a time:
- In your project’s left sidebar, select Code, then Merge requests, and open yours.
- Scroll to the merge section under the description.
- Leave Delete source branch on if you see it. The branch’s change will be in main, so you won’t need the branch.
- Select Merge. If you see Set to auto-merge instead, select that. It merges when all required checks pass, including any required approvals.
- Wait until GitLab shows Merged, then tell your AI tool: “I merged the merge request. Switch to main and get the latest version from origin.”

It worked when: The merge request shows as merged, and main on GitLab has your change.

Before we move on, check with me:
- Did your AI tool say it switched to main?

If something goes wrong:
- GitLab says the branch has conflicts. Main changed in the same lines since you made the branch. Tell your AI tool: “My merge request has conflicts. Bring main into my branch, show me each clash, and fix it with me.”

Compare GitLab with the other options: https://buildladder.com/concepts/saving-your-code.md
