O'Reilly logo

GitLab Cookbook by Jeroen van Baarsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating your first merge request

When you're done editing code, you might want your peers to review it. Instead of mailing patches around, you can do this in a super easy way in GitLab using a merge request.

A merge request is like an issue, but it has the diff of the code change attached to it, and users can create line-by-line comments on the code.

Getting ready

To follow this recipe, you need a project in GitLab, and you need that project cloned to your local system so that you can edit some code. I'll be using the super-git project we created in a previous chapter.

How to do it…

Perform the following steps to create a merge request:

  1. Go to the project on your local machine:
    cd ~/Development/super-git/
    
  2. Make sure you're on the master branch:
    git checkout ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required