Fix Git Homebrew on Yosemite

If you are in the Yosemite version and uses Homebrew to manage your packages maybe you have been wondering why you can’t update Git. At least in my case I just got the message Error: No such file or directory - /usr/local/Cellar/git or if you type git --version still showing that you are in the 1.9.5.

Considering you’ve already did brew install git, do the following:

  • Open terminal and type

$ type git

  • Press enter and the answer will be like this

git is hashed (/usr/bin/git)

  • Then type the following

$ hash -d git

After do this you can type git --version and you’ll see the correct version displaying whit no errors.

Please, leave a message if you have any problem.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s