Git “Command Not Found” Error In Mountain Lion



 按 cmd+,  出来设置选项,选择Downloads标签,安装一下command line tools就可以解决。





-bash: git: command not found

when you try executing the git command in your Terminal.

git not found

Don’t worry, here’s how you can fix this very quickly in just two steps.

Step 1

Launch the App Store then download "Xcode".

install xcode

Step 2

Install Xcode, run it and go to Xcode’s preference via shortcut key Command + ,

Go to the Downloads tab, look for "Command Line Tools", and click Install.

install command line tools

You may be required to enter an Apple Developer ID. If you don’t have an account, just register for one.

login with apple id

Step 3

We kid. That’s it. Once the Command Line Tool is installed, quit and re-open Terminal, hit the gitcommand and see if it has been successfully reinstated.

test git in terminal


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值