More than 1 year has passed since last update.
git branch -a \
  | perl -ne'm|[^/\* ]+$|;next if$_{$&};$_{$&}=1;next if m,^\*|remotes/.+/HEAD,;$s="\e[0m<S>";s|.*/([^/]+)/|\e[31m$1$s|; s|^ +([^/]+)$|\e[34mlocal$s$1|;print' \
  | column -ts'<S>' \
  | fzf --ansi \
  | xargs git checkout
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.