Git and Textmate on OSX Lion

6 years ago by in technology Tagged: , , , , ,

Have you seen this git bundle?

Just because it might save someone a bit of pain; if you are getting extremely tedious messages like the below when trying to use git in textmate after your upgrade (forced by an ill-timed and catastrophic hardware failure* or not), here are steps to fix. My googling found an awful lot of not very helpful stuff..

Evil error messages of doom:

sh: line 1: git: command not found

Administration >> Update Git bundle:

Updating git bundle

/Users//Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:131:in `paths’: No selected files. (RuntimeError) from /Users//Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:80:in `path’ from /Users//Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:89:in `path_for’ from /Users//Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:415:in `with_path’ from /tmp/temp_textmate.cRVD5L:22



add the path to your git bin (get it by typing which git in a terminal window. remove the trailing git) in Preferences >> Advanced >> Shell Variables >> PATH like so:


add a new variable TM_GIT with a value of git



*Woe. Now. More installing. More. SO. MUCH. MORE.

Eclecticism is the light and the way. Parsnips are fantastic. Celeriac is evil.