[Python-Dev] Helping contributors with chores (do we have to?) (original) (raw)

Jakub Wilk jwilk at jwilk.net
Sun Jun 25 10:35:11 EDT 2017


Right, this is documented here: https://help.github.com/articles/checking-out-pull-requests-locally/

There're also various tools for dealing specifically with git branch layout as used by Github, and every real man writes their own

I have this in my gitconfig:

[alias] hub-pr = ! "_g() { set -e -u; git fetch origin "pull/$1/head:gh-$1" && git checkout "gh-$1"; }; _g"

If I want to checkout PR#42, I do:

$ git hub-pr 42

-- Jakub Wilk



More information about the Python-Dev mailing list