Lecture # 11 - Merge Requests

Lecture # 11 - Merge Requests

What are merge requests. How to use merge request.

Merge Requests:

A merge request also known as a pull request in some platforms is a request made by a developer to merge their code changes from one branch into another branch within a Git repository. It serves as a way to propose and review changes before they are integrated into the main codebase.

Merge Request on GitLab:

Follow the step to create a merge request on GitLab:

  1. Open GitLab and go to your project.

  2. Select 'Branches' from the navigation menu.

  3. This window will be opened. You can see there is 1|1 written, that means there are some changes done. After that there is a 'New' button. Click on that button to create a new merge request.

  4. You can create title of your choice There are multiple options like select Assignee, and Reviewer. You can select of your choice. In my case, I'm the only owner.

  5. Scroll down a little and you can select the option to delete the source branch if you want. Click on the blue 'Create merge request' button.

  6. Click on the blue 'Merge' button.

  7. We've successfully merged the branches.

    This is how we request to merge and then merge the branches.