Macos – Installed Git, not sure how to get it working

gitmacosterminal

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?

Best Answer

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

Related Question