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

后端 未结 13 1558
北荒
北荒 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条回答
  •  Happy的楠姐
    2020-11-27 11:20

    This is the solution from GitHub docs:

    From your project repository, check out a new branch and test the changes.

    git checkout -b GithubUserID-branchName branchName
    git pull https://github.com/GithubUserID/reponame.git branchName
    

    Where:

    1. GithubUserID is the username of the person who opened the pull request.
    2. branchName is the name of the branch for example master
    3. reponame the repository name like demo-todo

    Example :

    git checkout -b felix123-master master
    git pull https://github.com/felix123/demo-todo.git master
    

提交回复
热议问题