Skip to content

Instantly share code, notes, and snippets.

@derek-uc
derek-uc / git-cleanup
Created January 31, 2024 19:45
git-cleanup
#!/usr/bin/env bash
# git-cleanup: cleanup all gone branches from remote
# place this script somewhere in your $PATH and call it using
# git cleanup
# basic stringent
set -o errexit
set -o noclobber