Installed Git, not sure how to get it working

9,325

Solution 1

This is likely a compiler or a permission issue.

Searching google for "Illegal instruction: 4" returns many results. See this link:

I would suggest removing git, and simply installing Xcode because installing Xcode also installs a mac specific version of git.

You could alternately install using homebrew

Solution 2

Not detracting from the command line approaches at all, but you can also get the GUI version.

Share:
9,325

Related videos on Youtube

MeltingDog
Author by

MeltingDog

Updated on September 18, 2022

Comments

  • MeltingDog
    MeltingDog over 1 year

    Ive installed Git on my Mac (OS 10.7.5) and it seems to be successful (I get the successful installation message). But when I open my terminal and try some basic command line, eg" git --version I just get the message:

    Illegal instruction: 4
    

    This is what all the tutorials tell me to do to get started. I am at a loss as to what to do next.

    Can anyone point me in the right direction?

  • Sean Allred
    Sean Allred over 10 years
    Homebrew is the easiest option, IMHO. You will still need to install Xcode, but you might be able to avoid its bloated CLI package.