3

I found a quick bug to fix in a project. I never made a development branch and when I finished with this bug fix I did a pull request for the new changes on the master branch.

While I'm waiting for that request to be merged I found another unrelated bug to work on. Can I make a new branch for bug #2 and work on that separately or will any changes be included in the still pending pull request from the first fix?

Is there anyway to fix this other than just waiting for it to be merged?

JDD
  • 417
  • 2
  • 9
  • 17

1 Answers1

1

While I'm waiting for that request to be merged I found another unrelated bug to work on. Can I make a new branch for bug #2 and work on that separately or will any changes be included in the still pending pull request from the first fix?

Yes, you can make a new branch: any changes on it will remain for that branch only.

If you add and push new commits on the initial branch you made a PR from, then that PR would be automatically updated, as I explain in "couple of tips for pull requests".

But any changes to a new branch wouldn't impact the PR in any way.

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