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
@ -239,3 +239,5 @@ alias glum='git pull upstream master'
|
|||||||
|
|
||||||
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
|
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 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…
Reference in New Issue
Block a user