Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make separate pull-requests for each commit in GitHub?

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

like image 967
rubo77 Avatar asked Sep 06 '25 03:09

rubo77


1 Answers

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

like image 138
Stuart Cardall Avatar answered Sep 07 '25 19:09

Stuart Cardall