BigW Consortium Gitlab

add-merge-request.md 1.43 KB
Newer Older
1 2 3 4
# How to create a merge request

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

karen Carias committed
5
To create a new Merge Request, sign in to GitLab.
6

karen Carias committed
7
Go to the project where you'd like to merge your changes:
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

![Select a project](basicsimages/select_project.png)

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

![Merge requests](basicsimages/merge_requests.png)

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

![New Merge Request](basicsimages/new_merge_request.png)

Select a source branch or branch:

![Select a branch](basicsimages/select_branch.png)

Click on the "compare branches" button:

![Compare branches](basicsimages/compare_branches.png)

Add a title and a description to your Merge Request:

![Add a title and description](basicsimages/title_description_mr.png)

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](basicsimages/add_new_merge_request.png)

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

### Note

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

![Automatic MR button](basicsimages/button-create-mr.png)