"-bash: git: command not found" after upgrade to 10.7.3

mikezang

macrumors 6502a
Original poster
May 22, 2010
772
1
Tokyo, Japan
I just upgraded to Lion 10.7.3 at the moment, I found I can't run git command to commit my source, does anyone help me?

Code:
git
-bash: git: command not found
 

Phil A.

Moderator
Staff member
Apr 2, 2006
5,499
2,287
Shropshire, UK
No idea why you're being prompted to install lion, but the reason git is no longer there is that Lion no longer includes it in the distribution
 

ScoobyMcDoo

macrumors 65816
Nov 26, 2007
1,185
34
Austin, TX
Beginning with Xcode 4.3, the command line tools are no longer installed by default. In Xcode, go to Preference->Downloads and install the command line tools.
 

mikezang

macrumors 6502a
Original poster
May 22, 2010
772
1
Tokyo, Japan
Beginning with Xcode 4.3, the command line tools are no longer installed by default. In Xcode, go to Preference->Downloads and install the command line tools.
Thanks, but when I tried to install documentation, I got message as below

Code:
Installation path, /Users/mikezang/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset, has the wrong ownership or is not writable.
The ownership as below, what can I do?
Code:
drwxr-xr-x  15 root  staff  510  8 31  2011 DocSets