From: Oleg Broytman Date: Tue, 12 Feb 2019 20:01:08 +0000 (+0300) Subject: .gitconfig: Change default remote for pull-requests X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bd7d09b1b93266705119dea31982e7c7d640ffae;p=dotfiles.git .gitconfig: Change default remote for pull-requests Change default remote for pull-requests from `upstream` to `origin`. --- 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]