7 Sep 2008

I'm giving Git a shot after attending Leeky's great introduction to it at BarcampBrighton3.

Update: Check out Leeky's slides.

Getting up and running with it was simple enough using the Git OS X installer.

I also installed the awesome ProjectPlus plug-in for TextMate (put it into ~/Library/Application Support/TextMate/Plugins, creating any of the folders that don't already exist) which gives TortoiseSVN-style overlay icons for Git and SVN. Although it worked off the bat for SVN (via the built-in SVN in Leopard), I didn't get the icon overlays for Git repositories.

The problem, according to this comment, on the ProjectPlus announcement post, is that ProjectPlus expects Git to be in a certain place (/usr/local/bin/git) whereas the OS X installer installs it in /usr/local/git/bin/git. In order to fix this, just create a symbolic link:

ln -s /usr/local/git/bin/git /usr/local/bin/git

Restart TextMate and bring up a project that's under Git and you should see your lovely iconic overlays. (This shouldn't affect you if you used Macports to install Git.)

Add Your Comment

Spam Protection by WP-SpamFree

Getting ProjectPlus to work correctly with Git OS X installer on Leopard

  1. To install a .tmplugin file you should just double-click it (TextMate will automatically create the folder if necessary and then move the plug-in there, and it will prompt you to restart TextMate).

    As for setting up your path: what you should do is go into TextMate’s preferences and then switch to the Advanced section and choose the Shell Variables tab. Then make a new variable called TM_GIT, and set it to the path to your git executable.

    This way you don’t have to mess about with symlinks, and it will also work with the Git bundle (http://gitorious.org/projects/git-tmbundle).

    Ciarán Walsh
  2. I’ll second the Git bundle as being really, really useful. Definitely worth checking out.

    Dominic Mitchell
  3. Super helpful — thanks Aral.

    Jake Camara
  4. I think should be like this

    cd /usr/local
    sudo mkdir -p git/bin/git
    sudo ln -s /usr/local/bin/git /usr/local/git/bin/git

    it worked…

    Özgür
  5. Yes, that did it.

    Thanks!

    Simon
  6. Did this, and also tried Ciarán’s suggestions in your comments (as well as similar ones mentioned on Ciarán’s site)

    No joy whatsoever. The *really* annoying thing is that I already have this working on my laptop – the only difference between the 2 systems is that git is living in /usr/local/bin on the laptop, whereas on the iMac, the /usr/local/bin directory didn’t even exist, I had to create it, then symlink. That seems….wrong to me somehow….

    James