dotfiles/scripts/git_delete_all_branches

4 lines
139 B
Text
Raw Permalink Normal View History

2024-01-25 09:53:09 +01:00
#!/bin/bash
# shellcheck disable=SC2063
2024-01-25 09:53:09 +01:00
git branch | grep -v "*" | grep -v master | grep -v main | xargs git branch -D ; git fetch --prune