dotfiles/scripts/git_delete_all_branches.sh

2 lines
111 B
Bash

#!/bin/bash
git branch | grep -v "*" | grep -v master | grep -v main | xargs git branch -D ; git fetch --prune