Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Github interface for single commit pull request

Tags:

git

github

I have been struggling a lot in creating a pull request for a single commit. I have followed this SO link (command line), but still after creating the new branch i am seeing 9 unwanted commits in my pull request with the one i want. I want to create a request for only single commit.

Is this possible through interface OR if any other way to create single commit pull request

like image 373
AnkitG Avatar asked Dec 07 '25 00:12

AnkitG


1 Answers

Your branches have diverged, and it's impossible to simply drag the top commit off the other branch with a pull request. What you need is a cherry pick: Check out the remote branch, create a new branch from that state, and then cherry pick your single commit onto the new branch. Then you can issue a pull request for the new branch.

like image 70
meagar Avatar answered Dec 08 '25 13:12

meagar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!