How to configure zsh to autocomplete branch names when using 'git checkout'?

When I say "git checkout", I want zsh to autocomplete the names of my git branches. Is it possible?

+6
git autocomplete zsh
source share
1 answer

The easiest way (and probably the only one that does not require a serious hack) is to update zsh. In my zsh 4.3.9 autocomplete works for git branches.

+1
source share

All Articles