Skip to content

Instantly share code, notes, and snippets.

@attiks
attiks / delete-stale-branches.sh
Last active April 16, 2021 09:16 — forked from gparlakov/delete-stale-branches.sh
Delete Stale Branches
#!/usr/bin/env bash
usage() {
echo "Usage: $0 [-y] [-l]" 1>&2;
echo "Uses dry run by default, specify -y to actually delete" 1>&2;
echo "Use -l to delete local branches" 1>&2;
echo "Assumes the main branch is called 'main'" 1>&2;
echo "Set main branch using git config core.main-branch 'main'" 1>&2;
exit 1;
}

Technical Consultancy Contract

Between us [company name] and you [customer name]

Summary