Add to .zprofile the following lines:
zstyle ':completion:*:*:git:*' script /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash# `compinit` scans $fpath, so do this before calling it.fpath=(/Library/Developer/CommandLineTools/usr/share/git-core $fpath)autoload -Uz compinit && compinit