Could not find Git in PATH environment variable - Windows

I run windows 8 and run the installation for the Git helper helper found here: http://blob.andrewnurse.net/gitcredentialwinstore/git-credential-winstore.exe

When it starts, in the console window that appears, the message "Could not find Git in the PATH environment variable. You can specify the exact path to Git by running git-credential-winstore - I am C: \ Path \ To \ Git.exe"

I think I donโ€™t know enough about the windows here to understand what I should do here. Ok where do I find this git-credential-winstore -i C: \ Path \ To \ Git.exe in the GitBash console?

The path to my Git.exe looks like 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โ€ because I am not very familiar with this period.

UPDATE - more info

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

So the problem, even after I tried the "Yari 1.9.3" command on the command line for windows or in powershell, did not work:

enter image description here

enter image description here

+4
source share
4 answers

you load the cd into the download directory or wherever you save git-credential-winstore.exe:

C:\Users\user\Downloads> 

then run

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

your window bar will look like this:

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

pay attention to quotation marks.

It worked for me.

+9
source

You run commands like this from the shell

On Windows, the defacto cmd.exe shell, also known as the command line .

This "program" can usually be found in C:\Windows\System32\cmd.exe

Your instructions probably omit this information because cmd.exe has been around for about 20 years.

0
source

You can only set the path to the registry key for uninstalling.
multiple script fragments.

 @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% 
0
source

Because the installed git is not in program files or program files (x86).

It was installed as a localized version for a specific user, and thus your environment variable path should be like this. C: \ Users \\ AppData \ Local \ Programs \ Git \ BIN

Greetings;)

0
source

Source: https://habr.com/ru/post/1486353/


All Articles