Last active
December 25, 2015 12:19
-
-
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
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
| 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