Add more aliases for `git branch`, use long form

Git can list local branches, remote branches, and both of them together.
Let's use the long form of the options to make the aliases quicker to understand.

As agreed in PR #2159, we introduce gbl and replace gba/gbr by gbla/gblr.
gbl/gbla/gblr allow wildcard arguments for filtering branch names.
pull/2159/head
Peter Bittner 2022-08-26 10:07:21 +02:00 committed by Peter Bittner
parent ad2b55804e
commit f0941e9ba2
1 changed files with 7 additions and 3 deletions

View File

@ -12,10 +12,14 @@ alias gav='git add -v'
# branch # branch
alias gb='git branch' alias gb='git branch'
alias gbD='git branch -D' alias gba='git branch --all'
alias gba='git branch -a'
alias gbd='git branch -d' alias gbd='git branch -d'
alias gbm='git branch -m' alias gbD='git branch -D'
alias gbl='git branch --list'
alias gbla='git branch --list --all'
alias gblr='git branch --list --remotes'
alias gbm='git branch --move'
alias gbr='git branch --remotes'
alias gbt='git branch --track' alias gbt='git branch --track'
alias gdel='git branch -D' alias gdel='git branch -D'