Cherry Pick to a Protected Branch

Is there a reason I can’t see protected branches in the Cherry-Pick Branch list, but I can see them in the Create New Merge Request view?

Usually you can merge to a protected branch, but you can’t directly push to it, so I wouldn’t expect that it would be possible to cherry-pick directly to the branch.

Personally, I would create an MR, cherry-pick to the source branch of the MR, and then merge it in. That way you can run a pipeline, and put the new history through code review.



1 Like