From 3ea498ecd1b252cd56a7b151697da1b1cca01a70 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Mon, 24 Jan 2022 11:54:51 +0100 Subject: [PATCH] gitconfig: Rename "pushnew" alias to "push-new" --- .gitconfig.inc/common.gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig.inc/common.gitconfig b/.gitconfig.inc/common.gitconfig index 5adc856..67056fd 100644 --- a/.gitconfig.inc/common.gitconfig +++ b/.gitconfig.inc/common.gitconfig @@ -48,7 +48,7 @@ default-branch = !git symbolic-ref --short refs/remotes/origin/HEAD | sed 's!^origin/!!' # Push a new branch to origin by setting the upstream branch - pushnew = "!f() { CURRENT=$(git branch --show-current); git push -u origin ${1-$CURRENT}; }; f" + push-new = "!f() { CURRENT=$(git branch --show-current); git push -u origin ${1-$CURRENT}; }; f" # "back to the future": switch to default branch and pull bttf = "!f() { DEFAULT=$(git default-branch); git switch ${1-$DEFAULT} && git pull --rebase --prune; }; f"