GitHub: How to send one pull request per separate commit?
I forked a project. I worked on it for a bit.
I now have ten different commits, each of which is independent to the other commits.
I’d like to send each individual commit as a separate pull request, to let the maintainer of the upstream choose which ones he/she wants.
I can’t find an easy way to do this.
The “easiest” I can find is to create ten separate branches, and cherry-pick each of the ten separate commits into those branches, and then send a pull request from each.
That’s … not sane!
(See for example how to divide one pull request into two different pull request on github )
git request-pull function supports this workflow, so is the problem here that GitHub just doesn’t have a good interface to this? Am I doomed to create ten branches?
One Solution collect form web for “GitHub: How to send one pull request per separate commit?”
GitHub’s Pull Requests are designed to be per-branch, not per-commit. This is deliberate:
After your pull request is sent, any new commits pushed to your branch will automatically be added to the pull request. This is especially useful if you need to make more changes.
If you want to send ten Pull Requests in GitHub you’ll have to do it using ten branches. The only exception would be if you wait for each Pull Request to be merged before submitting the next one.