2023-03-13
These are the aliases you should always have in "${HOME}/.gitconfig":
[alias]
tidy = !git branch | grep -vE "^\*| master$| main$" | xargs -r git branch -D
brief = !git log --oneline | head
Annoying that "git fetch --prune" doesn't clean up local branches, but whatever.
-- CC0 Björn Wärmedal