X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/179626ae0a8eb3fbe813d667d6075e64ee4dc9cc..3b9bd321d67bbb34fd4b38d7fc74435c5b75df83:/base/.gitconfig?ds=sidebyside diff --git a/base/.gitconfig b/base/.gitconfig index 91550b2..8d0cd8f 100644 --- a/base/.gitconfig +++ b/base/.gitconfig @@ -5,5 +5,8 @@ [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 +[init] + defaultBranch = master