]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: Change default remote for pull-requests
authorOleg Broytman <phd@phdru.name>
Tue, 12 Feb 2019 20:01:08 +0000 (23:01 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 12 Feb 2019 20:01:08 +0000 (23:01 +0300)
Change default remote for pull-requests from `upstream` to `origin`.

.gitconfig

index 969d6d788343d6cb110a8855cc936e6e881f565b..e855a541cb57e7bdff055f31867c87f446c7d335 100644 (file)
        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]