c2c-deck/clearLocalBranches.sh

4 lines
136 B
Bash
Raw Permalink Normal View History

2025-11-23 08:51:57 +01:00
#!/bin/bash
git checkout master
LANG=en_US
git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d