bash : git : add gbd to delete branches & make gf also prune removed remote branches.

This commit is contained in:
Dmitry Voronin 2023-10-26 22:14:47 +03:00
parent 9741abee35
commit 4405cfb998
2 changed files with 4 additions and 1 deletions

View file

@ -471,6 +471,7 @@ Command|Description
`gc [MESSAGE]`|Git commit. `gc [MESSAGE]`|Git commit.
`gch`|Git checkout. `gch`|Git checkout.
`gb`|Git branch. `gb`|Git branch.
`gbd [BRANCH]`|Delete specified Git branch.
`gf`|Git fetch --all. `gf`|Git fetch --all.
`gt`|Git tag. `gt`|Git tag.
`gi`|Delete files updated in git ignore. `gi`|Delete files updated in git ignore.

View file

@ -9,7 +9,8 @@ alias gd="git diff"
alias gc="git commit -m" alias gc="git commit -m"
alias gch="git checkout" alias gch="git checkout"
alias gb="git branch --all" alias gb="git branch --all"
alias gf="git fetch --all -v" alias gbd="git branch -D"
alias gf="git fetch --all -v -p"
alias gt="git tag" alias gt="git tag"
alias gi="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached" alias gi="git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached"
alias gpc="git diff >" alias gpc="git diff >"
@ -74,6 +75,7 @@ __git_complete gd _git_diff
__git_complete gc _git_commit __git_complete gc _git_commit
__git_complete gch _git_checkout __git_complete gch _git_checkout
__git_complete gb _git_branch __git_complete gb _git_branch
__git_complete gbd _git_branch
__git_complete gf _git_fetch __git_complete gf _git_fetch
__git_complete gt _git_tag __git_complete gt _git_tag
__git_complete gp _git_apply __git_complete gp _git_apply