Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i create a merge request from a fork in gitlab

I joined a project on which I've done some work. The work has now been validated and I need to create a merge request (back to master) from the changes I have pushed to my fork. But I don't understand how I can do this in gitlab...Can anybody help?

like image 780
stdcerr Avatar asked Jul 18 '18 03:07

stdcerr


People also ask

How do you merge Forks?

Simply push your development branch to the forked remote repository and create the pull request as described in the linked article. The owner of the original repository can then add your repository as a new remote repository, fetch your changes and merge your development branch back into the master branch.

What is the request to merge forked changes called?

The name “pull request” comes from the idea that you're requesting the project to “pull” changes from your fork. You initiate a pull request when you're ready to begin merging new changes in the code to the project's main repository.


1 Answers

To create a merge request to merge branch from forked repo into the branch of the upstream repo, you can use below steps:

In the forked repo -> Merge Requests -> select the branch from forked repo as the source branch, and select branch from the upstream repo as target branch -> Compare branches -> Specify the user Assign to -> Submit merge request.

More details, you can refer the document Merging upstream.

like image 155
Marina Liu Avatar answered Nov 14 '22 22:11

Marina Liu