From ec94e7ebddaac86435074766c604e5400a9e7654 Mon Sep 17 00:00:00 2001 From: druckdev Date: Wed, 7 Jul 2021 12:02:27 +0200 Subject: [PATCH] git: Set `push.default` to `current` Push current branch to branch of same name. This is useful for new branches as I almost always push those with: ``` git push -u origin "$(git branch --show-current)" ``` --- .config/git/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/git/config b/.config/git/config index bbaa246..7be100e 100644 --- a/.config/git/config +++ b/.config/git/config @@ -33,3 +33,5 @@ tool = nvimdiff [init] defaultBranch = main +[push] + default = current