Merging And Deleting Branches Automatically

Feb 28, 2014

If there is one thing I do a lot of in Git, it’s merging branches and then deleting them. I have this thing for merged branches laying around. It drives me nuts. I like to keep my repo as clean as I can.

So, I created a small shell script that I can call and pass a branch name to that merges the branch and then deletes the branch in one step.

If you want to use it, place it in your path and make it executable.