http://qs1969.pair.com?node_id=11123128


in reply to [OT] How to make a second github PR

You can create a new branch from the upstream master and then cherry-pick on top of it the changes you want to include in the pull-request.
  • Comment on Re: [OT] How to make a second github PR

Replies are listed 'Best First'.
Re^2: [OT] How to make a second github PR
by perlfan (Vicar) on Oct 25, 2020 at 20:23 UTC
    This ^^

    $ git log # get SHA-second-commit of your second commit $ git checkout master # whatever upstream "latest" is $ git checkout -b second-pr $ git cherry-pick <SHA-second-commit> $ git push origin second-pr # now get URL git prints to STDOUT and go to your uRL, make 2nd PR

    To remove that commit from your first branch, git rebase -i HEAD^^^, then delete the line of the second commit you just cherry picket, save and exit $EDITOR.