dotfiles/slackware/home/bin/scripts/prune_local_branches

4 lines
116 B
Text
Raw Normal View History

2022-06-07 15:44:19 -04:00
#!/bin/bash
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D