Created
January 5, 2024 09:49
-
-
Save exaV/a756da8dd1a5788973b6d73e286d0993 to your computer and use it in GitHub Desktop.
cleanup git branches that have no remote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git branch -vv (verbose) marks deleted branches with : gone | |
git branch -vv | rg gone | fzf -m --bind ctrl-a:select-all | 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