gitlab-org--gitlab-foss/doc/gitlab-basics/add-merge-request.md
2015-07-31 08:21:53 -07:00

1.4 KiB

How to create a merge request

Merge Requests are useful to integrate separate changes that you've made to a project, on different branches.

To create a new Merge Request, sign in to GitLab.

Go to the project where you'd like to merge your changes:

Select a project

Click on "Merge Requests" on the left side of your screen:

Merge requests

Click on "+ new Merge Request" on the right side of the screen:

New Merge Request

Select a source branch or branch:

Select a branch

Click on the "compare branches" button:

Compare branches

Add a title and a description to your Merge Request:

Add a title and description

Select a user to review your Merge Request and to accept or close it. You may also select milestones and labels (they are optional). Then click on the "submit new Merge Request" button:

Add a new merge request

Your Merge Request will be ready to be approved and published.

Note

After you created a new branch, you'll immediately find a "create a Merge Request" button at the top of your screen. You may automatically create a Merge Request from your recently created branch when clicking on this button:

Automatic MR button