Skip to content

Commit 11cde62

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Added a new troubleshooting section in the maintainer guide
2 parents 92d294a + 55b9b17 commit 11cde62

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

_build/maintainer_guide.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)