mirror of
https://github.com/jakubpawlowicz/git-cheat-sheet.git
synced 2025-12-23 15:45:25 +02:00
Adds fpr alias.
Fetches a PR from GitHub, e.g. `g fpr <PR-number>`
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user