Mac os 使用brew install 安装工具时报错 fatal: not in a git directory Error: Command failed with exit 128: git

在Mac OS 通过 brew 安装工具时, 报如下错误

Mac os 使用brew install 安装工具时报错 fatal: not in a git directory Error: Command failed with exit 128: git_第1张图片

解决办法: 执行

brew doctor

提示如下警告

Mac os 使用brew install 安装工具时报错 fatal: not in a git directory Error: Command failed with exit 128: git_第2张图片

根据警告, 执行提示的命令即可解决问题

你可能感兴趣的:(git,github)