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"