Mac OS X v10.7(Lion)上的Git [英] Git on Mac OS X v10.7 (Lion)

查看:68
本文介绍了Mac OS X v10.7(Lion)上的Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Mac升级到 Mac OS X V10.7 (Lion),现在Git不见了:

I just upgraded my Mac to Mac OS X v10.7 (Lion), and now Git is gone:

$ git
-bash: git: command not found

我如何找回Git?

推荐答案

默认安装位置为/usr/local ,因此请将其添加到您的〜/.bash_profile 文件:

The default install location is /usr/local, so add this to your ~/.bash_profile file:

export PATH=$PATH:/usr/local/git/bin/

然后在终端中运行source ~/.bash_profile.

这篇关于Mac OS X v10.7(Lion)上的Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆