Merge part of a pull request

New Git and Github user. Is it possible to accept/merge only part of a Pull Request?

For example if there is a Pull Request on Github that has 4 commits but you only want to use 2 of them, is there a way to simply merge the 2 and disregard the other 2?

  • Cannot SSH using private key while building Docker image
  • Reuse Git submodule's submodule
  • Git hook when a new branch is created and/or pushed
  • How can I diff two branches with fugitive?
  • how can i git clone git://foo.git AGAIN?
  • NuGet and distributed version control (DVCS)
  • How can I check in a bash script if my local git repo has changes
  • how to git commit a whole folder?
  • size of array '__curl_rule_01__' is negative
  • VSTS missing certain build flag: env:BUILD_SOURCEVERSIONMESSAGE
  • git subtree split “No new revisions were found”
  • EGIT saying Read timed out after 30,000 ms
  • One Solution collect form web for “Merge part of a pull request”

    No, the pull request is all or nothing.

    You can recreate the pull request by making a branch up to only the commits you need and merge that.

    You can do this via

    git cherry-pick
    

    Or

    git rebase -i
    
    Git Baby is a git and github fan, let's start git clone.