DEV Community

loading...

Discussion on: Multiple Github PRs?

Collapse
rkichenama profile image
Richard Kichenama

Assuming you have develop as the main branch hash and array will merge into, you can git checkout -b array develop which will make a a branch based on develop where you can cherry-pick your commit with the array.c changes onto, then make the PR for the array branch

Collapse
burdettelamar profile image
Burdette Lamar Author

Great! Thanks much!
Then when one PR is merged, the other will still be capable of a clean merge?

Collapse
rkichenama profile image
Richard Kichenama

yes, under these conditions. It gets messier if the changes you want to separate are spread among different commits.