diff options
-rw-r--r-- | clearLocalBranches.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clearLocalBranches.sh b/clearLocalBranches.sh new file mode 100644 index 000000000..4126fc8dc --- /dev/null +++ b/clearLocalBranches.sh @@ -0,0 +1,4 @@ +#!/bin/bash +git checkout master +LANG=en_US +git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d
\ No newline at end of file |