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
parent
ad2b55804e
commit
f0941e9ba2
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue