When I attempt to run
git --version (or any git command) in git-bash, I get the following error:
bash: git: command not found
In Windows, I have
C:\Program Files\Git\cmd in my Path system variable.
I have created a shortcut on my desktop for git-bash. In its properties, I have removed the
--cd-to-home flag from the Target executable, and changed the "Start in" directory to one that is a git repository:
When I open git-bash from this shortcut,
/d/my-proj as expected. However, I still get the
bash: git: command not found issue.
env from git-bash, I found a couple interesting things:
HOMEDRIVEare set to
PATHis set to
ORIGINAL_PATHseems to point to my Windows path variable, but it includes
/mingw64/bin:/usr/bin:/z/bin, and does not show a path to Git.
It seems that my git-bash isn't playing nicely with my Windows path variables, but I'm not sure how to set them so I can run Git commands from git-bash. Any advice?