most of my local branches have a prefix. So when i needed to cleanup all the local branches except the prod ,i have an alias set as git_branch_delete="git branch | grep $@ | xargs git branch -D". So i just do git_branch_delete flip and deletes all branches starting with flip prefix
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
most of my local branches have a prefix. So when i needed to cleanup all the local branches except the prod ,i have an alias set as
git_branch_delete="git branch | grep $@ | xargs git branch -D"
. So i just dogit_branch_delete flip
and deletes all branches starting withflip
prefix