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?

  • How to push to multiple Git repositories using multiple accounts on the same machine?
  • git still shows files as untracked despite .gitignore and rm -r --cached. What did I do wrong?
  • Cloning git repo
  • Force merge commit and fast forward in git-merge
  • Ignoring certain xml lines when merging
  • Concatenate multiple launchpad repositories
  • How to write or package a Git server as a Java Servlet or Java webapp?
  • What is the mean of Push in Git?
  • merge without merged branch commits history sourcetree
  • open-source mini-heroku?
  • git + LaTeX workflow
  • rebase not ignoring commits with same textual changes?
  • 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.