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

Discussion in 'Mac OS X Lion (10.7)' started by mikezang, Mar 8, 2012.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    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
    
     
  2. Phil A. Moderator

    Phil A.

    Staff Member

    Joined:
    Apr 2, 2006
    Location:
    Shropshire, UK
    #2
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Can you tell me why?

    Then I found even I installed 10.7.3, it still prompt me to install in MacStore, why?
     

    Attached Files:

  4. Phil A. Moderator

    Phil A.

    Staff Member

    Joined:
    Apr 2, 2006
    Location:
    Shropshire, UK
    #4
    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
     
  5. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #5
    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.
     
  6. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #6
    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
     
  7. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #7
    I didn't have those issues. I did the install with an administrative account.
     

Share This Page