今天早起兴致冲冲更新了最新的Mac系统,然后打开studio发现git出问题了,如下
can't start git:usr/bin/git
probably the path to git executable is not valid
出现这个问题是因为该目录下的git无法执行,下面说一下解决方法
在终端界面输入sudo /usr/bin/git这个命令,如果提示你
xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
这句话,在下面继续输入命令sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer它会提示你下载一个东西,下完以后就ok了。
本文解决了Mac系统更新后Studio中Git无法执行的问题。通过在终端使用特定命令,可以修复路径配置错误导致的Git不可用状况。

1万+

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



