Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a second github pull request when one is already pending

Tags:

I've used other revision control systems before but have little experience with git and github.

I wanted to contribute to a project, so I forked it on github, fetched a local copy of my fork, edited it, committed it, pushed the change back to my github fork, and opened a pull request for the original upstream author to look at. That all seems fine. The author said he'll get around to using it in a bit.

But now I want to address a second issue of the project with a second pull request. But everything I commit and push ends up being appended to that first pull request. What I want to do is make a new second pull request for the subsequent changes, while the first pull request is still pending and not merged in to the upstream yet.

What steps do I need to run to do that? I'm using git-bash.

like image 344
user3496878 Avatar asked Apr 04 '14 07:04

user3496878


People also ask

Can I raise 2 pull requests from same branch?

There can be only one open PR from a given branch.

How do I re submit a pull request?

If changes have been made to a pull request that has already been reviewed, you can now re-request a review with a single click in the pull request's sidebar. This will notify the requested reviewers that changes have been made.


1 Answers

You have to think in your developments as separated features that aren't related. Your second feature should use a new branch/fork which should be created from the original/currentVersion project, like the first time.

like image 157
mayo Avatar answered Oct 21 '22 10:10

mayo