Fix GIT command not found terminal mountain lion os x in 5 seconds

July 31, 2012

Seen various fixes to this problem but this is the ultimate 5 second quick fix.

open your ~/.bash_profile, if you use textmate it would be:

sudo mate ~/.bash_profile

add this line to the file:

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

Save & close the file and type on the terminal:

source ~/.bash_profile

About me

Hello! I'm David Heward, how are you going? I'm a Senior Devops/Build Engineer, specialising in AWS & Cloud Automation. Based in London. Strong 10+ year background in Software development. Have a read of my blog. Have a look at some of my working projects. Contact me at @davehewy or on Linkedin.