[git] Add function to merge GitHub pull requests

Ref: https://help.github.com/articles/checking-out-pull-requests-locally