Because who can git branch
then find the right branch?
$ 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
:)