Created
January 31, 2018 10:30
-
-
Save rhysd/e4550a7a441eb76b4e514adcc4e34ead to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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