How to locally review, edit, and merge a GitHub pull request.
Assume userfoo has sent us a pull request. We want to test their changes locally and possibly make some edits before merging the pull request into our repository.
masterto test the changes.
git checkout -b <temp-branch-name> master
command line instructionslink.
git pull <url> <branch-name>
git checkout master git merge --no-ff <temp-branch-name> git push origin master
git branch -d <temp-branch-name>