When trying to use some of the commands from the Git bundle for TextMate (eg. 'Show Uncommited Changes') I get an error message like 'sh: line 1: git: command not found'.
How do I make TextMate work with Git?
http://theappleblog.com/2008/01/09/textmate-no-longer-a-reason-to-avoid-git/
Set the TM_GIT shell variable in the textmate preferences to your git executable to work to solve the command not found problem.
To find the path to your git binary, type "which git" on the command line. And of course, make sure Git is installed.
If you already allowed git-osx-installer to make git available to non-CLI applications (i.e. it planted a file in /etc/paths.d/git) then you could just..:
Untick the PATH shell variable set by default in the textmate preferences.
I recently run in the same problem with Snow Leopard, and none of the above solutions was apperaring to be working. So I made a symlink in /usr/bin
to my git executable file like this:
cd /usr/bin
sudo ln -s `which git` git
then relaunched Textmate
and it worked like a charm, without adding any variable or whatever
Also, once you add the TM_GIT var, restart TextMate. Didn't work for me after the preference change without a restart.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With