From 851295533d048d7e28f5c3182df34c5f2395ee98 Mon Sep 17 00:00:00 2001 From: Antti Harju Date: Sat, 15 Feb 2025 11:42:53 +0200 Subject: [PATCH] Add clean-branches --- clean-branches | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 clean-branches 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