当初用 Homebrew 安装 git-flow 时遇到过。网上流传的
1 2
brew remove git brew install git --without-completions
已经不管用了,这个参数会被直接忽略掉。
解决方法:删除/usr/local/share/zsh/site-functions/_git
/usr/local/share/zsh/site-functions/_git