Skip to content

Instantly share code, notes, and snippets.

@exaV
Last active November 4, 2025 16:24
Show Gist options
  • Select an option

  • Save exaV/a756da8dd1a5788973b6d73e286d0993 to your computer and use it in GitHub Desktop.

Select an option

Save exaV/a756da8dd1a5788973b6d73e286d0993 to your computer and use it in GitHub Desktop.
cleanup git branches that have no remote
# list all branches for mass delete
# to filter merged brnanches type ': gone'
git branch -vv | fzf --layout reverse -m --bind ctrl-a:select-all --color 'hl:#f44336,hl+:#f44336' | awk '{print $1}' | xargs -I {} git branch -D '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment