Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git lab - Cannot Create: This merge request already exists: ["Master"]

Tags:

git

gitlab

I have force pushed with this command :

git push -f origin master

and it pushed fine but when I went to git lab for submit, my commit message was for 5 days ago (my last commit) and I've got this error:

**Cannot Create: This merge request already exists: ["Master]"**

I also need to mention that my new changes are in compare page and I can see and edit them but my commit message is for 5 days ago and when I hit submit button the above error shows up

any help? my new changes error

like image 211
Hoven Avatar asked Apr 15 '17 10:04

Hoven


Video Answer


3 Answers

You have to close all previous open merge requests first. You can check already existing open merge requests in the github/gitlab repository where you are doing merge request

like image 88
Uddhav P. Gautam Avatar answered Oct 04 '22 18:10

Uddhav P. Gautam


I use gitlab to merge,then get the error.Validate branches Cannot Create: This merge request already exists:

I just checkout the project again, and pull push the two branch to gitlab, Then solve it.

like image 45
wangyu2488 Avatar answered Oct 04 '22 17:10

wangyu2488


I had to switch to a different branch and push again to solve the issue

like image 36
PKS Avatar answered Oct 04 '22 19:10

PKS