Reputation: 47733
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:
Upvotes: 4
Views: 23722
Reputation: 1
if you use win7 you should update your path, right click on my computer, advanced system settings, environment variables, in below choose path, and put (;
) semicolon, then add bin folder in flutter sdk direction, it will be run
Upvotes: 0
Reputation: 531
Because the git you have installed is not in the Program Files or Program Files(x86).
It have been installed as a localized version for the particular user and thus your Environment Variable path should be like this. C:\Users\\AppData\Local\Programs\Git\bin
Cheers ;)
Upvotes: 0
Reputation: 1855
You can only install path under uninstall registry key.
some snippet batch script.
@ECHO OFF
SET __PA=
IF /i NOT "%PROCESSOR_ARCHITECTURE%"=="x86" SET __PA=\Wow6432Node
FOR /F "tokens=2*" %%F in ('REG QUERY HKLM\SOFTWARE%__PA%\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1 /v InstallLocation') DO SET gitPath=%%G
ECHO %gitPath%
Upvotes: 0
Reputation: 6332
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.
Upvotes: 10
Reputation: 1
You run commands like this from a shell
With Windows the defacto shell is cmd.exe
, also known as
Command Prompt.
This "program" can typically be found at C:\Windows\System32\cmd.exe
Your instructions likely omit this information because cmd.exe
has been around for 20 years.
Upvotes: 0