美文网首页
Mac 升级后git 不能正常使用, can't sta

Mac 升级后git 不能正常使用, can't sta

作者: 笨鸟后飞了 | 来源:发表于2018-09-26 08:58 被阅读341次

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 升级后git 不能正常使用, can't sta

      本文链接:https://www.haomeiwen.com/subject/xetdoftx.html