1

Is there any way to change head fork of existing pull request?

I have earlier created a pull request with branch A, now I want that PR to take commits from branch B.

rkatkam
  • 2,634
  • 3
  • 18
  • 29

1 Answers1

0

If the base (the branch against which your PR is compared remains the same), you your PR branch must change its content, you simply can force push a new content:

 git checkout B
 git push --force B:A

The PR will update its content (new list of commits)

However, the branch A on the fork will keep its original name (A), because you cannot rename a branch involved in a PR on your fork.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250