.dotfiles/private_dot_local/bin/executable_,git-prune
2024-09-30 18:06:03 -04:00

6 lines
203 B
Bash

#!/usr/bin/env bash
echo "Cleaning remote branches"
git remote prune origin
echo "Cleaning local branches"
git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D