Adds fpr alias.

Fetches a PR from GitHub, e.g. `g fpr <PR-number>`
This commit is contained in:
Jakub Pawlowicz
2015-02-11 09:22:42 +00:00
parent 2de967442c
commit 505a9637da

View File

@@ -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"