Mac上的Git设置(ERROR:“-bash:git:command not found”) [英] Git setup on mac (ERROR: "-bash: git: command not found")
问题描述
我正在通过此链接在Mac上设置git( http:// help.github.com/mac-set-up-git/ )。我成功,直到第5步,我看到消息你好kharagpur!您已成功验证,但GitHub不提供shell访问。
I am trying to setup git on my Mac through this link (http://help.github.com/mac-set-up-git/). I was successful until Step 5 and I do see the message Hi kharagpur! You've successfully authenticated, but GitHub does not provide shell access.
当我尝试下一步(然后:设置您的信息)我遇到问题 -bash:git:command not found
当我试图执行 git config --global user.nameFirstname Lastname
When I try the next step ("Then: Setting Up Your info") I run into problems -bash: git: command not found
when I tried to execute git config --global user.name "Firstname Lastname"
我从用户/(myusername)/
I am executing this line from the user/(myusername)/
我的主要目标是设置github并将项目从repo拉到我的本地计算机,以便我可以使用Eclipse代码。
My main goal is to setup github and pull projects from a repo to my local computer so I can code using Eclipse.
任何帮助,谢谢你的提前。 p>
Any help appreciated and thank you in advance.
推荐答案
这听起来像你没有安装git。
It sounds like you did not install git.
我(MacOSX Lion):
This worked for me (MacOSX Lion):
获取安装程序:
curl -O http://git-osx-installer.googlecode.com/files/git-1.7.9.1-intel-universal-snow-leopard.dmg
Mount:
hdiutil attach ./git-1.7.9.1-intel-universal-snow-leopard.dmg
安装:
sudo installer -pkg /Volumes/Git\ 1.7.9.1\ Snow\ Leopard\ Intel\ Universal/git-1.7.9.1-intel-universal-snow-leopard.pkg -target /
卸载:
hdiutil detach /Volumes/Git\ 1.7.9.1\ Snow\ Leopard\ Intel\ Universal/
清理:
rm git-1.7.9.1-intel-universal-snow-leopard.dmg
这篇关于Mac上的Git设置(ERROR:“-bash:git:command not found”)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!