IDEA 报错: Can’t start Git: /usr/bin/git Probably the path to Git executable is not valid.
错误原因:
打开 IDEA 的 Teminal 就可以看到错误原因:
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
解决办法:
1. 执行 sudo xcodebuild -license 即可
2. 安装Xcode的话,可以直接打开Xcode进行安装就好
本文介绍了在使用IntelliJ IDEA时遇到的Git错误提示:Can’t start Git:/usr/bin/git Probably the path to Git executable is not valid,并给出了详细的解决步骤。错误原因是Xcode许可协议未同意,需要管理员权限来接受许可协议。提供了两种解决方法:一是通过命令行运行特定命令,二是直接安装Xcode。
376

被折叠的 条评论
为什么被折叠?



