简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM