Home Download Buy Blog Forum Support

Git binary could not be found in PATH

Git binary could not be found in PATH

Postby sublimed on Tue Sep 04, 2012 9:41 pm

I'm getting this popup error whenever I select a file.
Git binary could not be found in PATH

Consider using the git_command setting for the Git plugin

PATH is: /usr/bin:/bin:/usr/sbin:/sbin


Anyone know how to fix this? I'm running a OSX 10.8.1 [Mountain Lion].

Cheers
sublimed
 
Posts: 10
Joined: Tue Mar 13, 2012 11:07 pm

Re: Git binary could not be found in PATH

Postby adzenith on Tue Sep 04, 2012 11:19 pm

I dunno but it's really annoying. I assume it has to do with either the git package or the modific package, though. Maybe I'll just uninstall them both.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Git binary could not be found in PATH

Postby adzenith on Tue Sep 04, 2012 11:20 pm

Looks to have been modific.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Git binary could not be found in PATH

Postby sublimed on Tue Sep 04, 2012 11:22 pm

I'm thinking it has something to do with the Mountain Lion upgrade. I uninstalled/reinstalled. Nothing.
sublimed
 
Posts: 10
Joined: Tue Mar 13, 2012 11:07 pm

Re: Git binary could not be found in PATH

Postby adzenith on Wed Sep 05, 2012 5:00 pm

Do you have modific installed? Mine stopped complaining the moment I uninstalled it. It did start happening around the time I upgraded to Mountain Lion, but then again I also have git in my path.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Git binary could not be found in PATH

Postby sublimed on Mon Sep 10, 2012 2:06 pm

adzenith wrote:Do you have modific installed? Mine stopped complaining the moment I uninstalled it. It did start happening around the time I upgraded to Mountain Lion, but then again I also have git in my path.

Modific isn't installed. I think I'm going to uninstall Git. See what happens...
sublimed
 
Posts: 10
Joined: Tue Mar 13, 2012 11:07 pm

Re: Git binary could not be found in PATH

Postby sublimed on Mon Sep 10, 2012 2:18 pm

Removed Git Package and Sidebar Git package and it worked. I use Tower Git gui anyway so it's not a big lose.

cmd + shift + P > remove package
sublimed
 
Posts: 10
Joined: Tue Mar 13, 2012 11:07 pm

Re: Git binary could not be found in PATH

Postby goldenmeanie on Mon Sep 17, 2012 5:57 pm

I've been having this problem ever since OS X 10.8, even after adding git to my path. It turns out that if I launch Sublime from the Terminal (subl .) I get no Git path errors. But Launching the app via the dock doesn't pick up the path settings and I get the error every time. This post leads me to believe that this can be solved but it's not clear to me how to use the .plist syntax to do it.

UPDATE: I uninstalled git (brew) and reinstalled. Brew doctor scolded me to install CLI tools, so I downloaded the ML version and reinstalled that too. Finished with brew install git, and now SidebarGit works as expected regardless of whether I launch from Terminal or Dock. No Path errors yet.
goldenmeanie
 
Posts: 1
Joined: Fri Sep 14, 2012 2:03 pm

Re: Git binary could not be found in PATH

Postby jahazzz on Tue Jan 29, 2013 5:36 pm

Hi, that's the way i solved it :
1. Go to Preferences > Browse Packages ...
2. In the directory Git, open the file Git.sublime-settings
3. Find git_command and set the path to the Git executable, for me it give :
Code: Select all
,"git_command": "/usr/local/git/bin/git"

4. Save, it's done !
jahazzz
 
Posts: 1
Joined: Tue Jan 29, 2013 5:25 pm

Re: Git binary could not be found in PATH

Postby shijnmichael on Fri May 24, 2013 6:25 am

jahazzz's solution works perfect.

If you have no idea where you get your git installed, run your terminal and type in
Code: Select all
which git

just FYI

Michael
shijnmichael
 
Posts: 1
Joined: Fri May 24, 2013 6:20 am

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 16 guests