gitgithubbrowserpatchpull-request

How to combine multiple patches into a single GitHub pull request?


How do I combine

https://github.com/jidanni/gdal/tree/patch-57
https://github.com/jidanni/gdal/tree/patch-58
https://github.com/jidanni/gdal/tree/patch-60

into a single pull request to https://github.com/OSGeo/gdal ?

These three patches contain a total of four commits.

I am asking how to do this with just a browser and the GitHub website. I am not asking how to do it with the git shell command.

I could easily just submit three pull requests, but that would annoy the owners.


Solution

  • From GitHub, you could:

    1. Create a new branch final-patch from the branch patch-57
    2. Merge patch-58 into final-patch with a PR in your fork.
    3. Merge patch-60 into final-patch with a PR in your fork.
    4. Create a PR with final-patch to the original repo gdal.