can't start git:usr/bin/git

来源:互联网 发布:淘宝的二手电脑怎么样 编辑:程序博客网 时间:2024/06/06 03:20

webstorm提示

can't start git:usr/bin/git 

probably the path to git executable is not valid

这种情况可能出现在系统更新之后

出现这个问题是因为该目录下git无法执行,下面说一下解决办法

一.在终端界面输入 sudo

二.user/bin/git

三.   

1)提示invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

2)输入  sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

3)输入电脑密码--------game over

git默认路径是在user/bin/git,如果终端输入user/bin/git没有反应说明路径不正确输入which git  查询git路径

在webstorm中设置git路径即可

再打开webstorm 提示消失

阅读全文
0 0
原创粉丝点击