can't start git:usr/bin/git

来源:互联网 发布:mac windows 10驱动 编辑:程序博客网 时间:2024/06/05 21:01

今天电脑更新,重启了下电脑,然后,pycharm就提示项目的git没有指定了,就是标题的错误

后来网上 查查了,用sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
我试过了,还是不行的,但是我隐约感觉到是跟xcode的更新有关系。

后来我在pycharm上点了几下,发现有提示执行命令sudo xcodebuild -license,照做后显示已下内容

You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'Apple Inc.Xcode and Apple SDKs AgreementPLEASE SCROLL DOWN AND READ ALL OF THE FOLLOWING TERMS AND CONDITIONS CAREFULLY BEFORE USING THE APPLE SOFTWARE OR APPLE SERVICES.  THIS IS A LEGAL AGREEMENT BETWEEN YOU AND APPLE.  IF YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS, CLICK THE “AGREE” BUTTON.  BY CLICKING “AGREE” OR BY DOWNLOADING, USING OR COPYING ANY PART OF THIS APPLE SOFTWARE OR USING ANY PART OF THE APPLE SERVICES, YOU ARE AGRE。。。。。

这些 都略过,最后输入agree 回车就可以了。

By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agreeYou can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf
阅读全文
0 0