git : add gbda to delete all local branches except for the current one.
This commit is contained in:
parent
279ced473c
commit
2059668718
|
@ -513,6 +513,7 @@ Command|Description
|
|||
`gchb`|Git checkout branch.
|
||||
`gb`|Git branch.
|
||||
`gbd [BRANCH]`|Delete specified Git branch.
|
||||
`gbda`|Delete all local branches except the current one.
|
||||
`gf`|Git fetch --all.
|
||||
`gt`|Git tag.
|
||||
`gi`|Delete files updated in git ignore.
|
||||
|
|
|
@ -11,6 +11,7 @@ alias gch="git checkout"
|
|||
alias gchb="git checkout -b"
|
||||
alias gb="git branch --all"
|
||||
alias gbd="git branch -D"
|
||||
alias gbda="git branch | grep -v ^* | xargs git branch -D"
|
||||
alias gf="git fetch --all -v -p"
|
||||
alias gt="git tag"
|
||||
alias gi="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"
|
||||
|
|
Reference in a new issue