You need to adjust shell path , the path will be set in either .bashrc
or .bash_profile
in your home directory, more likely .bash_profile
.
So add into the path similar to the below and keep what you already have in the path, each segment is separated by a colon:
export PATH="/usr/local/bin:/usr/bin/git:/usr/bin:/usr/local/sbin:$PATH"