X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/133ce0676d7a1e86809147ced9ff817822f7fd31..3c83c67b47ed2bd5d55a573938f990a46f71ee55:/base/.gitconfig diff --git a/base/.gitconfig b/base/.gitconfig index a2804de..8d0cd8f 100644 --- a/base/.gitconfig +++ b/base/.gitconfig @@ -5,3 +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