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>:masterTry 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?
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:
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.