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

arch -arm64 brew install cocoapods 报错 fatal: not in a git directory Error: Command failed with exit 128: git


解决办法: 执行

brew doctor

提示如下警告


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

你可能感兴趣的:(Mac os 使用brew install 安装工具时报错 fatal: not in a git directory Error: Command failed with exit 128: git)