by kbar13 · 12y ago · 0 comments
does this actually work? `git branch --merged` for me also
returns '* master', which when xarg'd would include the '*'
and also 'master'. I don't want to delete master, and I
certainly dont want to delete * if it globs.
EDIT: made this into a code block as I have no idea how to make asterisks display.alias gclean='git remote prune origin; git branch --merged | grep -v -E "(\*|master)" | xargs -n 1 git branch -d'
error: Cannot delete the branch 'master' which you are currently on.