Tag Archives: git

Getting Git to work in Textmate, Resolving "sh: git: command not found" error

I’ve been doing a lot of work with Git lately and its great. I downloaded and installed the Git Bundle for Textmate but it didn’t  seem to work, always returning the error message “sh: git: command not found”. Since I did most of my Git work from the command line I just ignored it but for some reason tonight I decided I needed to fix.

Since I knew Git worked on my system, it must have been something with the way Textmate was configured. I couldn’t figure out how to confiugre Textmate to point to my Git install so I guess I cheated and I created a symbolic link on my system to point to my Git install. It seems to have corrected my issue with Textmate.

The command I ran was pretty simple
[bash]
sudo ln -s /usr/local/git/bin/git /usr/bin/git
[/bash]
That’s it, Textmate is now happy with my Git install.

Tagged ,
%d bloggers like this: