Skip to content

Instantly share code, notes, and snippets.

@krames
Last active December 25, 2015 12:19
Show Gist options
  • Select an option

  • Save krames/6975827 to your computer and use it in GitHub Desktop.

Select an option

Save krames/6975827 to your computer and use it in GitHub Desktop.
This function will fetch and checkout a pull request allowing for easier PR reviews. To install this include it in your .bash_profile. To checkout pull request 123 from your repo you would execute the following: fpr 123
function fpr {
git branch -D pr_$1 2> /dev/null
git fetch upstream 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