How can I fetch an unmerged pull request for a branch I don't own?

后端 未结 13 1538
北荒
北荒 2020-11-27 10:55

I need to pull in a specific pull request (that hasn\'t been processed into the main stream yet) in the NServiceBus repo:

https://github.com/johnsimons/NServiceBus/c

13条回答
  •  渐次进展
    2020-11-27 11:24

    For difficult situations (especially if you have not a checked out git-repo), I think the simplest way is to apply a patch. For this just open the pull-request on github and add a ".patch" to the URL, download it and apply the patch.

    Example:

    cd cordova-plugin-media
    wget https://github.com/apache/cordova-plugin-media/pull/120.patch
    patch -p1 < 120.patch
    

提交回复
热议问题