How to apply unmerged upstream pull requests from other forks into my fork?

后端 未结 7 1265
悲哀的现实
悲哀的现实 2020-11-29 14:32

A project on GitHub that I have a fork of has a new pull requests that I want to pull into my fork that the author has not pulled in yet.

Is there a simple way to ap

相关标签:
7条回答
  • 2020-11-29 14:57

    Like Tekkub said previously, you can just pull the branch in directly. Most of the time with GitHub, the branch is simply "master" on the requesting User's fork of the project.

    Example: git pull https://github.com/USER/PROJECT/ BRANCH

    And as a pratical example:

    Say you forked a github project called safaribooks and there is the following pull request, in the originating project, that you want to put in your fork:

    Then, in your fork's cloned project folder, run:

    git pull https://github.com/fermionic/safaribooks.git fix-str-decode
    
    0 讨论(0)
提交回复
热议问题