diff --git a/clean-branches b/clean-branches new file mode 100755 index 0000000..563147d --- /dev/null +++ b/clean-branches @@ -0,0 +1,7 @@ +#!/usr/bin/env dash +set -eu + +# clean-branches +# delete all local branches except the current one + +git branch | grep -v "^*" | xargs git branch -D