Reputation: 20845
I made two changes on a project in GitHub (two commits). How can I create two different pull requests from my changes?
I only found a way to create one big pull request that includes all my changes: https://github.com/tcatm/ffmap-d3/pull/22
Upvotes: 4
Views: 3200
Reputation: 2447
Create a new branch:
git checkout master
git checkout -b mybranch
... make changes ...
git add myfile
git commit
git push -u origin mybranch
Then create a pull request and change the last compare button on github to mybranch
Upvotes: 1
Reputation: 20845
You can easily solve this with the SmartGit/hg GUI:
for the second pull request, you create a new branch and do the same with it
Upvotes: 2
Reputation: 841
Here are some screenshots taken from the Mac OSX version of the GitHub desktop program.
Here I am making the first commit, but you can see both changes have been made prior to the commit:
Here I am making the second commit:
Here you can see that each commit was accepted individually:
Assuming that the Windows version of GitHub has the same options, I would download the desktop program and try that.
Upvotes: 0