Issue
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.
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"
I am executing this line from the user/(myusername)/
My main goal is to setup github and pull projects from a repo to my local computer so I can code using Eclipse.
Any help appreciated and thank you in advance.
Solution
It sounds like you did not install git.
This worked for me (MacOSX Lion):
Get the installer:
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
Install:
sudo installer -pkg /Volumes/Git\ 1.7.9.1\ Snow\ Leopard\ Intel\ Universal/git-1.7.9.1-intel-universal-snow-leopard.pkg -target /
Unmount:
hdiutil detach /Volumes/Git\ 1.7.9.1\ Snow\ Leopard\ Intel\ Universal/
Clean up:
rm git-1.7.9.1-intel-universal-snow-leopard.dmg
Answered By - torbenl
Answer Checked By - Robin (JavaFixing Admin)