nixos-config/scripts/git_clean_remote_deleted

7 lines
90 B
Bash
Executable file

#!/bin/sh
git branch -vv \
| grep ': gone]' \
| awk '{print $1}' \
| xargs git branch -D