From 505a9637da29bf5d77945162119a28609b90f397 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Wed, 11 Feb 2015 09:22:42 +0000 Subject: [PATCH] Adds `fpr` alias. Fetches a PR from GitHub, e.g. `g fpr ` --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 521a6ae..e8dfb9a 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ git config --global alias.d "diff" git config --global alias.dc "diff --cached" git config --global alias.ds "diff --stat" git config --global alias.dsc "diff --stat --cached" +git config --global alias.fpr '!sh -c "git fetch origin pull/$@/head:$@-pr"' git config --global alias.l "log" git config --global alias.lf "log --follow" git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all"