I'm just getting started with my dev environment on OS X Lion and recently installed Sublime Text 2 and git integration using Package Control. So, when I press CMD+SHIFT+P I get all the relevant git commands.
However, whenever I use one, I get the same error message: sublime-git-error
Here's what I've done to try and fix it:
I ran mdfind -name git
in terminal and noticed that all the binaries from my git install (v. 1.7.10.3) are located in /usr/local/git/bin
so I tried editing ~/.profile
with this line:
export PATH="/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:usr/local/lib;/usr/local/mysql/bin:$PATH"
and when I run echo $PATH
now in terminal the directory is listed there.
Even so, I still get the same error message as above. Any solutions or pointing out what I'm missing are appreciated!
Basically you need to set
"git_command": "/usr/local/git/bin/git"
in Packages/User/Git.sublime-settings or in Packages/Git/Git.sublime-settings
For more details have a look at this issue => https://github.com/kemayo/sublime-text-2-git/issues/96