gitconfig: Rename "pushnew" alias to "push-new"
This commit is contained in:
parent
314579e2b8
commit
3ea498ecd1
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue