Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /bin/bash
set -e
if [[ "$1" == "" ]]; then
echo "Usage: git pull-pr {PR number}" 1>&2
exit 1
fi
git fetch origin "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
You can’t perform that action at this time.