1

I'm trying to learn Github and following this video. I keep getting 'git' is not recognized as an internal or external command, operable program or batch file. in cmd. I tried adding it to the PATH environment variable, but have no clue where Git.exe is located, or even if the install was succesfull. I'm running Windows 8.1 64bit and in control panel there is GitHub by GitHub inc. In C:\Program Files\Git there is one file called mtab

Celeritas
  • 14,489
  • 36
  • 113
  • 194

2 Answers2

3

Instead of trying to reference the embedded git.exe packaged with GitHub Desktop (that path is quite complex), simply uncompress the latest git for windows which is PortableGit-2.6.4-64-bit.7z.exe anywhere you want.

Then add to your %PATH%:

C:\path\to\PortableGit-2.6.4-64-bit\bin
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

Here is the path to git.exe in Windows: C:\Users\\AppData\Local\GitHub\PortableGit_\bin\git.exe

for more detail click here

Community
  • 1
  • 1
Rafiullah
  • 26
  • 3