resetting git path after clean install
Touch your .bash_profile to create it if you have none:

touch ~/.bash_profile


Now, add this line to the above file at the end of the file:

export PATH=$PATH:/usr/local/git/bin


Then, run this in the terminal

source ~/.bash_profile