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
- 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.