Hacker News new | past | comments | ask | show | jobs | submit login

I have an alias that I have created that prevents the branch you are currently on or master from being deleted.

alias gclean='git remote prune origin; git branch --merged | grep -v -E "(\*|master)" | xargs -n 1 git branch -d'




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: