After my Yosemite upgrade homebrew was not working. I had to remove the folders manually to reinstall it again. the installation process went fine. Installation of brew itself is fine.
Now I reinstalled GIT by downloading it using the brew (brew install git). It is installed to the directory /usr/local/bin/git. However, when I check the installation by checking its version (git --version), I get an error: **/usr/bin/git: No such file or directory**
I tried changing PATH in my profile to no avail. I have no .bashrc or .bash_profile in my system. Could someone help me with this?