File tree 1 file changed +17
-0
lines changed
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:
335
335
$ git push origin
336
336
$ git push upstream
337
337
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
+
338
355
.. _`symfony/symfony-docs` : https://github.com/symfony/symfony-docs
339
356
.. _`Symfony Docs team` : https://github.com/orgs/symfony/teams/team-symfony-docs
340
357
.. _`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