最近使ったgit branch

--sort=-committerdate を使うと良い。

$ git branch --sort=-committerdate

これをベースに gitconfig とかで branch のスイッチを peco と組み合わせて簡単にできる alias を登録しておくと便利。

# .gitconfig
swb = !git branch --sort=-committerdate | tr -d '* ' | peco | xargs git switch

参考

git fetch –prune

git fetchprune オプションを付けると、リモートで削除されているブランチを自動で削除してくれる。

$ git fetch --prune

リモートで消されたブランチが手元で残ってしまう件を解消する - Qiita