I\'ve created lots of branches in one of our repositories. Those branches are for testing before it will be pulled to the master. Now I see lots of them on the list and they
Try this command, it will purge all branches that have been merged to the develop branch.
develop
for i in `git branch -r --merged origin/develop| grep origin | grep -v '>' \ | grep -v master | grep -v develop | sed -E "s|^ *origin/||g"`; \ do \ git push origin $i --delete; \ done