gitconfig: Rename "pushnew" alias to "push-new"

This commit is contained in:
Lexi / Zoe 2022-01-24 11:54:51 +01:00
parent 314579e2b8
commit 3ea498ecd1
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 1 additions and 1 deletions

View File

@ -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"