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

后端 未结 13 1586
北荒
北荒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 11:14

    To fetch a pull into your repository:

    git fetch git@github.com:jboss/jboss-common-beans.git refs/pull/4/head
    

    Then do whatever you want with FETCH_HEAD:

    git checkout -b new-branch FETCH_HEAD
    

提交回复
热议问题