File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,23 @@ in the tree as follows:
335335 $ git push origin
336336 $ git push upstream
337337
338+ Merging in the wrong branch
339+ ...........................
340+
341+ A Pull Request was made against ``5.x `` but it should be merged in ``5.1 `` and you
342+ forgot to merge as ``gh merge NNNNN -s 5.1 `` to change the merge branch. Solution:
343+
344+ .. code-block :: terminal
345+
346+ $ git checkout 5.1
347+ $ git cherry-pick <SHA OF YOUR MERGE COMMIT> -m 1
348+ $ git checkout 5.x
349+ $ git revert <SHA OF YOUR MERGE COMMIT> -m 1
350+ # now continue with the normal "upmerging"
351+ $ git checkout 5.2
352+ $ git merge 5.1
353+ $ ...
354+
338355 .. _`symfony/symfony-docs` : https://github.com/symfony/symfony-docs
339356.. _`Symfony Docs team` : https://github.com/orgs/symfony/teams/team-symfony-docs
340357.. _`Symfony's respectful review comments` : https://symfony.com/doc/current/contributing/community/review-comments.html
You can’t perform that action at this time.
0 commit comments