From 16190ca630dfb0bb2c2c3abecfc25cd17b85c097 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Fri, 10 May 2024 13:31:13 -0400 Subject: [PATCH] helper script to clean local repo --- scripts/git_local_prune | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/git_local_prune diff --git a/scripts/git_local_prune b/scripts/git_local_prune new file mode 100644 index 00000000000..1960d0cd55a --- /dev/null +++ b/scripts/git_local_prune @@ -0,0 +1,3 @@ +#!/bin/sh +# This script automatically deletes any local branches which have been merged +git branch --merged | grep -v master | xargs git branch -d