executable_git-pure 151 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -x
  3. set -e
  4. for branch in $(git branch --merged | grep -v master)
  5. do
  6. git branch -d "$branch"
  7. done
  8. git remote prune origin