You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
276 B

7 months ago
#!/usr/bin/env bash
set -euo pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
# cd "$(dirname "$0")"
main() {
# https://stackoverflow.com/a/6127884
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d
}
main "$@"
# vim: ft=sh