From f607d5315c1376e57295f759a1856beda69808a1 Mon Sep 17 00:00:00 2001 From: hellerve Date: Fri, 26 Apr 2019 16:51:35 +0200 Subject: [PATCH] gitconfig: fix git pr --- gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitconfig b/gitconfig index 64e66db..adaba9a 100644 --- a/gitconfig +++ b/gitconfig @@ -14,7 +14,7 @@ lgp = log --pretty=format:'%Cred%h%Creset -- %cn, %cr\t%Cgreen%s%Creset' lol = log --graph --decorate --pretty=oneline --abbrev-commit lola = log --graph --decorate --pretty=oneline --abbrev-commit --all - pr = "!f() { git fetch origin pull/$1/head && git checkout FETCH_HEAD; }; f" + pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head && git checkout FETCH_HEAD; }; f" pl = pull ps = push repourl = config --get remote.origin.url