GNU/Linux ◆ xterm-kitty ◆ zsh 78 views

Using fzf to delete multiple branches at once.

~/.gitconfig:

[alias]
    # Delete branches from your recent used ones
    fd = "!f() { git branch -a --sort=-committerdate | grep -v remotes\\/ | fzf -m | sed 's/remotes\\/origin\\///' | xargs -o git br -D; }; f"