Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using github for the first time. In terminal I receive this error

git: command not found

If I type in terminal

which git

it returns nothing. If I type

which github

it returns /usr/local/bin/github

Github's command line utility seems to be installing a github but not a git. echo $PATH returns /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin. Currently do not have a .bash_profile or .profile. Not sure if that is significant. Am a command line and $PATH rookie but am determined to learn. Mac OS version 10.6.8 and Github version 1.2.8. All advice is appreciated.

share|improve this question
up vote 1 down vote accepted

Official git build can be downloaded from here:

Another source for git might be MacPorts:

Xcode 4.x installs git too; if Xcode 4.x is on your to-install list, you will get it that way. (I don't think you actually get any choice in the matter.)

share|improve this answer
I suggest you use macports – codd Jun 17 '12 at 20:35
Thanks Tom (and codd) for the advice and the quick response. Just installed Xcode 3.2. Still no git command but I'll install macports next. – B6431 Jun 18 '12 at 1:48
Agh, apologies, didn't mention that it is only Xcode 4.x that installs git. Sorry. I forgot about Xcode 3.x (I work with iOS, and they stopped letting iOS developers use it a few months ago). Answer edited... – Tom Seddon Jun 18 '12 at 17:25
@Tom Its OK. Your first answer, going to is what I should have done first. That solves the git: command not found. Thanks again. – B6431 Jun 19 '12 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.