Skip to content

Services

GitLab

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

Visit 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.

When to use it
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.
What it costs
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.

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.

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.

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.

Copy the prompt for these steps

All 6 steps, in one prompt
I’m following “Save your code on GitLab” on BuildLadder.
What the guide says I’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.
This comes from https://buildladder.com/tools/gitlab#saving-your-code. If you can open web pages, read https://buildladder.com/tools/gitlab.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## 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.”

The steps

  • Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
  • Save a version after every step that works.
  • If a screen looks different from a step, ask your AI tool where the setting moved.
  • Never paste a password or secret key into the chat.
  1. Your code in a private project

    Create a private project

    You

    On GitLab, your code’s online home is called a project. You make an empty one, so your AI tool can fill it with your files.

    1. 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.
    2. In the upper-right corner, select Create new, the plus icon, then New project/repository.
    3. Select Create blank project.
    4. Type a Project name, like my-site. Next to it, check that the address uses your own username.
    5. Under Visibility Level, choose Private.
    6. Leave Initialize repository with a README off. Your product already has files, and an empty project takes them without a clash.
    7. Select Create project.

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

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

    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.

  2. Upload your code with your AI tool

    AI tool

    Your AI tool saves a first version (Git calls it a commit), connects your folder to GitLab under the name origin, and pushes your files up.

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

    Check this step
    • Is .env missing from the file list, as it should be?
    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.

  3. One change, reviewed and merged

    Make a change on a branch

    AI tool

    A branch is a copy of your work where you try a change. Main stays as it was until you merge the change in.

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

    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.

  4. Open a merge request

    You

    A merge request asks to merge your branch into main. GitHub calls the same thing a pull request. It shows every changed line, so you can check it first.

    1. In your project’s left sidebar, select Code, then Merge requests.
    2. In the upper-right corner, select New merge request.
    3. Choose your new branch as the source branch and main as the target branch.
    4. Select Compare branches and continue.
    5. Type a title that says what changed, and a short description of why.
    6. Select Create merge request.

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

    Check this step
    • Open the Changes tab. Do you see only the change you asked for?
    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.”

  5. Get the change reviewed

    AI tool

    A review is a second look before a change reaches main. Your AI tool can read the whole change and list problems in plain words.

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

    Check this step
    • Do you understand each problem in the list?
    • Are the fixes you chose now in the merge request?
    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?”

  6. Merge it into main

    You

    Merging brings the branch’s change into main. If a host puts your site online from main, your change goes online at this moment.

    1. In your project’s left sidebar, select Code, then Merge requests, and open yours.
    2. Scroll to the merge section under the description.
    3. Leave Delete source branch on if you see it. The branch’s change will be in main, so you won’t need the branch.
    4. Select Merge. If you see Set to auto-merge instead, select that. It merges when all required checks pass, including any required approvals.
    5. 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.

    Check this step
    • Did your AI tool say it switched to main?
    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

Stuck? Try these, in order
  1. Stop asking it to “fix it”. Say exactly what’s wrong.

    Paste this into the same chat. It asks your AI tool to find the problem with you.

    Troubleshooting prompt
    I’m following “GitLab” on BuildLadder and something isn’t working.
    This comes from https://buildladder.com/tools/gitlab. If you can open web pages, read https://buildladder.com/tools/gitlab.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.
    
    Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.

  2. Check the service isn’t down.

    If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.

  3. Go back to your last saved version.
    Troubleshooting prompt
    Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.

  4. Make the change smaller.
    Troubleshooting prompt
    Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.

  5. Ask a person.

    Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.

    Problem report
    What I'm building: (one sentence)
    What I asked my AI tool to do: (the last request)
    What I expected: (what should happen)
    What happened instead: (what you see)
    The exact error, if any: (copy it here)
    What I've tried: (each attempt, in order)
    My tools: (AI tool, website or app, hosting)

Look things up

Questions people ask

Words used on this page

Repository
A repository, or repo, is a folder for your product that Git tracks, including the full history of every saved change. You can keep it on your computer and copy it to GitHub.
GitLab
GitLab is a website that stores your Git repositories online, like GitHub. It keeps a backup of your product's history and lets you review and merge changes with other people.
Git
Git is a free tool on your computer that keeps a history of your product's files. It lets you save versions, compare them, and go back if something breaks.
Commit
A commit is a saved version of your product at one moment, with a short note about what changed. Git keeps every commit, so you can look back or undo a change later.
Remote
A remote is a copy of your repository kept somewhere else, usually on GitHub or GitLab. Git’s default nickname for that copy is origin.
Push
Pushing sends the commits you saved on your computer up to your online copy, like GitHub or GitLab. Until you push, your new versions exist only on your computer.
Branch
A branch is a separate line of work in a Git repository where you can try changes safely. Your main version stays the same until you choose to bring those changes in.
Main branch
The main branch is the usual default branch. Other branches merge into it, and hosts put it online. Main is only a name, and older repositories may call it master.
Pull request (merge request)
A pull request asks to merge one branch into another and shows the changed lines for review. GitLab calls it a merge request.
Code review
A code review is a second look at a change before it's merged. A person or an AI tool reads the changed lines and points out bugs, risks or simpler ways to do it.
Merge
Merging brings the changes from one branch into another. Most often you merge a finished branch into main, so its changes become part of your main version.
Merge conflict
A merge conflict happens when two branches change the same lines differently, so Git can't tell which to keep. Someone has to choose, line by line, before the merge can finish.

Official pages

Updated · GitLab