@@ -344,30 +344,30 @@ When it happens, you need to resolve conflict. See these articles about resolvi
344344- `About merge conflicts <https://help.github.com/en/articles/about-merge-conflicts >`_
345345- `Resolving a merge conflict using the command line <https://help.github.com/en/articles/resolving-a-merge-conflict-using-the-command-line >`_
346346
347- .. _ git_from_mercurial :
347+ .. _ git_from_patch :
348348
349- Applying a Patch from Mercurial to Git
350- --------------------------------------
349+ Applying a Patch to Git
350+ -----------------------
351351
352352Scenario:
353353
354- - A Mercurial patch exists but there is no pull request for it.
354+ - A patch exists but there is no pull request for it.
355355
356356Solution:
357357
3583581. Download the patch locally.
359359
3603602. Apply the patch::
361361
362- git apply /path/to/issueNNNN-git. patch
362+ git apply /path/to/patch.diff
363363
364364 If there are errors, update to a revision from when the patch was
365365 created and then try the ``git apply`` again:
366366
367367 .. code-block:: bash
368368
369369 git checkout $(git rev-list -n 1 --before="yyyy-mm-dd hh:mm:ss" main)
370- git apply /path/to/issueNNNN-git. patch
370+ git apply /path/to/patch.diff
371371
372372 If the patch still won't apply, then a patch tool will not be able to
373373 apply the patch and it will need to be re-implemented manually.
@@ -382,6 +382,9 @@ Solution:
382382 git rebase main
383383 git mergetool
384384
385+ For very old changes, ``git merge --no-ff `` may be easier than a rebase,
386+ with regards to resolving conflicts.
387+
3853886. Push the changes and open a pull request.
386389
387390.. _git_pr :
0 commit comments