[all-commits] [llvm/llvm-project] 102715: [Docs][Github] explain how to rectify gh pr merge ...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Wed Sep 13 14:03:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 102715a60ee45d04b5ba687a8728acd21e61494a
      https://github.com/llvm/llvm-project/commit/102715a60ee45d04b5ba687a8728acd21e61494a
  Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M llvm/docs/GitHub.rst

  Log Message:
  -----------
  [Docs][Github] explain how to rectify gh pr merge failure (#66223)

I recently went to merge a PR that had a merge conflict:

    $ gh pr merge --squash --delete-branch
X Pull request #66003 is not mergeable: the merge commit cannot be
cleanly created.
To have the pull request merged after all the requirements have been
met, add the `--auto` flag.
    Run the following to resolve the merge conflicts locally:
gh pr checkout 66003 && git fetch origin main && git merge origin/main

This is how I resolved it; we should recommend this explicitly for
fellow contributors.




More information about the All-commits mailing list