Git move pull request from one repository to another repository

Yes you can but in a workaround:

Add the 2 remotes to your repository. then do a git cherry-pick of the desired commit to the second repository and now create a new pull request as usual.

The point is that in GIT you can have multiple remotes and the commits can be "added" to any of the branches.

If you work with github the pull request are fetched locally to your repository so you can merge them right away.


GitHub Checkout github pull requests locally

https://gist.github.com/piscisaureus/3342247


Thanks to Steve Bennetts and CodeWizards answers I could get it to work with a mix of both answers like this:

in Repository TWO

git remote add ONE  https://...
git fetch ONE pull-request

git co -b pull-request-from-repository-ONE
git cherry-pick [sha-commit-hash]

note I messed up with trying to cherry-pick a range of commits, cause my pull-request branch had merges already inside... so anyway, cherry-picking single commits seems to work


Assuming this "pull request" is on a service like Github, you just treat it like any other branch, on your computer:

git remote add repoone https://....
git fetch repoone
git merge pull-request

Tags:

Git