File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,26 @@ forgot to merge as ``gh merge NNNNN -s 5.1`` to change the merge branch. Solutio
352
352
$ git merge 5.1
353
353
$ ...
354
354
355
+ Merging while the target branch changed
356
+ .......................................
357
+
358
+ Sometimes, someone else merges a PR in ``5.x `` at the same time as you are
359
+ doing it. In these cases, ``gh merge ... `` failes to push. Solve this by
360
+ resetting your local branch and restarting the merge:
361
+
362
+ .. code-block :: terminal
363
+
364
+ $ gh merge ...
365
+ # this failed
366
+
367
+ # fetch the updated 5.x branch from GitHub
368
+ $ git fetch upstream
369
+ $ git checkout 5.x
370
+ $ git reset --hard upstream/5.x
371
+
372
+ # restart the merge
373
+ $ gh merge ...
374
+
355
375
.. _`symfony/symfony-docs` : https://github.com/symfony/symfony-docs
356
376
.. _`Symfony Docs team` : https://github.com/orgs/symfony/teams/team-symfony-docs
357
377
.. _`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