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
af94828b69
commit
56ad0000f7
@ -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…
Reference in New Issue
Block a user