Claus Witt dot com

webdeveloper

A couple of weeks ago I wrote a post about a bash script I used to clean up remote branches. I have just created its brother (and have plans to combine them to one script at one point).

In both scripts I check if the branch about to be removed is one i expect I want to keep. (In my cases master and live branches are off limits to deleting).

As always the script is located as a gist on github. (Embedded here, to make it seem I have worked on this post for more than a couple of minutes.)

If you have a better way to check for the branches, I would love to hear from you, since I find my "solution" too much of a hack.

blog comments powered by Disqus