Skip to content

Instantly share code, notes, and snippets.

@srhb
Created August 12, 2018 20:00
pr = mkAlias "pr"
${git} fetch -fu \
${2:-$(${git} remote | grep "^upstream" || echo origin)} \
"refs/pull/$1/head:pr/$1" && \
${git} checkout "pr/$1";
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment