Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find Git in your PATH environment variable - Windows

Tags:

git

windows-8

I'm running windows 8 and ran the setup for the Git credential helper found here: http://blob.andrewnurse.net/gitcredentialwinstore/git-credential-winstore.exe

When it runs, in the console window that pops up, I get "Could not find Git in your PATH environment variable. You can specify the exact path to git by running git-credential-winstore -i C:\Path\To\Git.exe"

I guess I do not know enough about windows here to understand what I should do here. Ok WHERE do I type this git-credential-winstore -i C:\Path\To\Git.exe, in the GitBash console?

The path to my Git.exe appears to be C:\Program Files (x86)\Git\cmd

Also note that when I installed Git from http://git-scm.com/downloads for windows, I chose the option "Use Git Bash Only" as I'm not really familiar with any of this stuff period.

UPDATE - more details

I am referencing this blog post: http://www.jeremymorgan.com/tutorials/how-to-install-octopress-windows/

So the problem is even after I tried the command "Yari 1.9.3" in the command prompt for windows, or in powershell, neither worked:

enter image description here

enter image description here

like image 847
PositiveGuy Avatar asked Dec 27 '22 01:12

PositiveGuy


1 Answers

you cd into your download directory or wherever you saved git-credential-winstore.exe to:

C:\Users\user\Downloads>

then run

 git-credential-winstore -i "C:\Program Files (x86)\Git\bin\git.exe"

your windows command line will look like this:

C:\Users\user\Downloads>git-credential-winstore -i "C:\Program Files (x86)\Git\bin\git.exe"

note the quote marks.

This worked for me.

like image 177
Craicerjack Avatar answered Apr 05 '23 22:04

Craicerjack