nonopolarity
nonopolarity

Reputation: 150956

Can multiple pull requests be sent to pull github commits?

I forked a project, edited some file and sent a pull request to the main project's master, and edited something else and sent a request again.

However, for the third edit and commit, when the request is sent, the message says:

Oops! There's already a pull request for <myname>:master Try a different branch or view the pull request?

So we can send the pull request twice but not three times? I thought the idea of git is that we can incrementally fix and commit, and send pull request for each fix and commit?

Upvotes: 2

Views: 1263

Answers (1)

klaustopher
klaustopher

Reputation: 6941

You do not send a pull request for a specific commit, but for a branch ... That's why it says on the top of the pull-request page something like this:

 rvanlieshout wants to merge 2 commits into maccman:master  from rvanlieshout:master

Also, if you make commits to your branch, they are added to the pull request. You can see this nicely if you look at a pull requests of a big project like this one on rails/rails. There is a bunch of lines saying "added a/some commit(s)".

If you want to open multiple pull-requests, you have to do this using different feature branches.

Upvotes: 4

Related Questions