From bd7d09b1b93266705119dea31982e7c7d640ffae Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 12 Feb 2019 23:01:08 +0300 Subject: [PATCH] .gitconfig: Change default remote for pull-requests Change default remote for pull-requests from `upstream` to `origin`. --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 969d6d7..e855a54 100644 --- a/.gitconfig +++ b/.gitconfig @@ -178,7 +178,7 @@ sw = show --word-diff --decorate unstage = reset HEAD -- - pr = "!f() { git fetch ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" + pr = "!f() { git fetch ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" clean-pr = "!git checkout master ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" [branch] -- 2.39.5