-2
我尝试使用git。但终端写:不能在终端工作git
ROUTER-SETTINGS:~ ILOVEME1199$ git
git: error: can't exec '/Applications/Xcode.app/Contents/Developer/usr/bin/git' (errno=No such file or directory)
我尝试使用git。但终端写:不能在终端工作git
ROUTER-SETTINGS:~ ILOVEME1199$ git
git: error: can't exec '/Applications/Xcode.app/Contents/Developer/usr/bin/git' (errno=No such file or directory)
我不知道你在你的路径有git
(或者可能是安装在所有)。它可能会混淆OS X,所以这里是the best resource。引用答案:
只需下载[原创混帐包] [1]。安装程序将安装git在
/usr/local/git
(您需要停用安全 选项来运行安装程序)。有在
/usr/bin
一个预装的git包装用的Xcode这 并不无需安装Xcode的工作中使用。您需要运行/usr/local/git/bin/git
显式或更改PATH变量为 包含/usr/local/git/bin
之前/usr/bin
!创建/编辑您的
~/.profile
下列要求:PATH=/usr/local/git/bin:$PATH export PATH
见http://superuser.com/a/666090/141 – VonC
正如一个供参考: StackOverflow上的用户希望能够以清晰的方式概述您的问题,并帮助我们帮助您解决问题。当提问关于git的问题时,勾勒出你是否安装了'git',这个行为是否由于某种原因而改变,并且显示出像'git --version'这样的输出是相当有帮助的。 – mbb