Skip to content

Instantly share code, notes, and snippets.

@dombesz
dombesz / delete_orphaned_local_branches.sh
Created September 28, 2020 14:45
Remove all local feature branches that have been deleted from the remote source.
git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d