Textmate git commands fail with 'sh: line 1: git: command not found'

Will Harris picture Will Harris · Aug 13, 2009 · Viewed 11k times · Source

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?

Answer

John Millikin picture John Millikin · Aug 13, 2009

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.