Skip to content

Instantly share code, notes, and snippets.

@Swop
Created October 21, 2014 10:00

Revisions

  1. Swop created this gist Oct 21, 2014.
    2 changes: 2 additions & 0 deletions delete_merge_branches.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/bin/bash
    git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d