dotfiles/fish/functions/gbda.fish
2022-11-27 14:20:25 +08:00

5 lines
191 B
Fish

function gbda -d "Delete all branches merged in current HEAD"
git branch --merged | \
command grep -vE '^\*|^\s*(master|main|develop)\s*$' | \
command xargs -n 1 git branch -d
end