Error 1 Git command "git.exe" could not be found.Please ensure that Git is installed.

Apr 28, 2012 at 8:06 PM

Hi,

 

I am getting the following messages when I am trying to build even though git is in my PATH and it works from cmd:

Error 1 Git command "git.exe" could not be found.Please ensure that Git is installed.

 

any idea?

 

Thanks,
Eyal 

Apr 28, 2012 at 8:59 PM
Edited Apr 28, 2012 at 9:13 PM

The fix is to replay all instances in GitInfoProvider.cs from "git.exe" to "git"

my mistake: this not the solution.. , still doesnt work

Solution:

Msysgit only add  C:\Program Files (x86)\Git\cmd to the PATH.

Need to Add C:\Program Files (x86)\Git\bin to the PATH and then it find the git.exe

 

Thanks

Eyal