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.
master
to test the changes.
git checkout -b <temp-branch-name> master
command line instructions
link.
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>