I don’t know how I lived so long without this: https://git-scm.com/book/en/v2/Appendix-A:-Git-in-Other-Environments-Git-in-Zsh
Git in Zsh
Zsh also ships with a tab-completion library for Git. To use it, simply run
autoload -Uz compinit && compinitin your.zshrc.