Recently at OneLogin we decided to prune and purge all merged branches in one of our large Git repos. Having never had to do this with more then a handful of branches, I had relied on the GitHub branches UI.

This UI is less than ideal when working with over about a dozen branches, so I started looking into scripts to help automate the process.