在Mac OS X Lion上使用git [英] git on Mac OS X Lion
本文介绍了在Mac OS X Lion上使用git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能存在重复: (迁移到提问)
安装操作系统后找不到Git X Lion
我刚刚将我的Mac升级为LION,现在git已不在:
$ git
-bash:git:找不到命令
有关如何获取git的任何想法?
解决方案默认安装位置是/ usr / local,所以将它添加到〜/ .bash_profile中。
$ b
export PATH = $ PATH:/ usr / local / git / bin /
然后在终端运行
source〜/ .bash_profile
Possible Duplicate: (migrated to Ask Different)
Git not found after installing OS X LionI just upgraded my mac to LION, and now git is gone:
$ git -bash: git: command not found
Any ideas on how to get git back?
解决方案The default install location is /usr/local so add this to your ~/.bash_profile
export PATH=$PATH:/usr/local/git/bin/
then run
source ~/.bash_profile
in Terminal这篇关于在Mac OS X Lion上使用git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文