X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/c463f87c65fd0f94545cfcfe7c1e4325ce4e7b99..03b903de311946827e690f4db8b082c0ab32dc47:/base/.gitconfig diff --git a/base/.gitconfig b/base/.gitconfig index 91550b2..5ed2164 100644 --- a/base/.gitconfig +++ b/base/.gitconfig @@ -5,5 +5,6 @@ [alias] push-all = !git remote | xargs -n1 git push submodules-pull = submodule foreach git pull origin master + pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" [pull] ff = only