mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Added git alias to remove local branches no longer on remote
The command `grrb` deletes all local branches which do not have a remote equivalent.
This commit is contained in:
parent
cd30d1ef8f
commit
9b2ca08ef5
1 changed files with 2 additions and 0 deletions
|
|
@ -239,3 +239,5 @@ alias glum='git pull upstream master'
|
|||
|
||||
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
|
||||
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'
|
||||
|
||||
alias grrb='git fetch -p && for branch in `git branch -vv | grep ': gone]' | gawk '{print $1}'`; do git branch -D $branch; done'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue