I have two branches develop and test.
test is behind develop which was created few weeks back.
I have created a pull request for test and my team member merged it.
Now I want to push the same change to develop branch.
I tried cherry-pick but it didn't work.
Is there anyway, I can pull the same pull request to develop branch?
The short answer is "no" but depending on how the branches are related there may be a way to work things so you're guaranteed not to have conflicts after the first merge.
A pull is nothing more than a fetch followed by a merge.
Hard to say without having more info on your commit tree, but you should be able to git checkout the develop branch, git merge with test (or whatever commit you're trying to merge with), and then git push your local develop branch to the remote repo's develop branch.
As far as I understand, your team member merged test in master when he accepted the pull request.
To now merge it in develop you could simply do, in your local repo
git checkout develop
git merge test
git push origin develop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With