Fuzzily Checkout a branch

Who can git branch then find the right one?

Install fzf:

Install dependency

$ brew install fzf

Add to your shell startup file: .zshrc or .bashrc:

branch() {
  git checkout $(git branch --format '%(refname:short)' | fzf --layout=reverse)
}

Restart your shell, in a git repository, type branch :)

Have a lovely day!