c2c-deck/clearLocalBranches.sh
2025-11-23 08:51:57 +01:00

4 lines
No EOL
136 B
Bash

#!/bin/bash
git checkout master
LANG=en_US
git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d