Gitlab - Revert in branch - what branch to select when reverting merge

Viewed 807

I am a bit confused about what branch to select in the ' Revert in branch ' dropdown while reverting a merge. I accidentally merged the 'test-1' branch into the Master branch. Now I want to revert it, but so I would click the revert button as shown below:

enter image description here

Clicking the button shows the following popup:

enter image description here

I am really confused about which branch should I pick in the dropdown. I want to revert the merge of test-1 and master.?

1 Answers

You merged test-1 into master, so master contains changes from test-1.

You no longer want master to have these changes, so you Revert in branch: master.

Related