Clean remote branches
git remote prune origin
Clean branches already merged into master
git checkout master
for k in $(git branch -a --merged|grep -v "\->"|sed s/^..//);do echo -e $(git branch -d "$k");done
Clean remote branches
git remote prune origin
Clean branches already merged into master
git checkout master
for k in $(git branch -a --merged|grep -v "\->"|sed s/^..//);do echo -e $(git branch -d "$k");done