Delete merged branches
master branch
git branch --merged origin/master | egrep -v "(^\*|master|develop)" | xargs -n 1 git branch -d
git push --delete origin `git branch -r --merged origin/master | egrep -v "(^\*|master|develop)" | sed 's/origin\///'`
develop branch
git branch --merged origin/develop | egrep -v "(^\*|master|develop)" | xargs -n 1 git branch …