delete merged branches in git, if you want to.
|local current_branch=$(git rev-parse --abbrev-ref HEAD)|
|for branch in $(git branch --merged | cut -c3-)|
|echo "Branch $branch is already merged into $current_branch."|
|echo "Would you like to delete it? [Y]es/[N]o "|
|if [[ $REPLY =~ ^[Yy] ]]; then|
|git branch -d $branch|