Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've installed Homebrew and fixed all of the errors that brew doctor reports, except this one:

martinjames$ brew doctor
Warning: An outdated version of Git was detected in your PATH.
Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
Please upgrade: brew upgrade git

I take homebrew's advice:

martinjames$ brew upgrade git
Error: git not installed

So, I check for git:

martinjames$ which git
/usr/bin/git

And I check for the version:

martinjames$ git --version
git version 1.7.5.4

What's next?

share|improve this question

migrated from stackoverflow.com May 9 '13 at 3:21

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

So the answer involved two things. First, I needed to do this:

brew update

And then this:

brew install git

The brew doctor command reported a problem with my path, so I ended up creating a .bash_profile in my home directory to make sure /usr/local/bin came before /usr/bin.

Now I'm ready to brew!

share|improve this answer

Your Answer

 
discard

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.