X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/62504b1f48cf4c4d10c85533b71b7301a852cd87..e0e92e9bb91b49a93b8152d3e02cd53be3830991:/base/.gitconfig?ds=sidebyside diff --git a/base/.gitconfig b/base/.gitconfig index a2804de..1f7f15e 100644 --- a/base/.gitconfig +++ b/base/.gitconfig @@ -5,3 +5,9 @@ [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" + tree = log --oneline --graph --branches --color +[pull] + ff = only +[init] + defaultBranch = master