本文介绍了MacOSX Mountain Lion上的Xcode和Git安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Mountain Lion和Xcode,所以在/Applications/Xcode.app/Contents/Developer/usr/bin下我找到了Git目录

I just installed Mountain Lion and Xcode, so under /Applications/Xcode.app/Contents/Developer/usr/bin I found the Git directory

但是当我在Shell终端中使用Git命令时,它会返回找不到命令的错误.有什么建议?我的Mac上有很多Git存储库,因此我想重用它们而不用再次检出它们:/

But when I use Git commands in the shell terminal it returns error of command not found. Any suggestions? I have many Git repos on my mac, so I would like to reuse them without checking them out again :/

推荐答案

您需要安装命令行工具(请参阅Xcode-> Preferences-> Downloads),也可以从 Apple Developer下载网站.

You need to install the command line tools (see Xcode -> Preferences -> Downloads) or you can download it from the Apple Developer Download site.

这篇关于MacOSX Mountain Lion上的Xcode和Git安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 19:27