Unable to run git from command line Unable to run git from command line symfony symfony

Unable to run git from command line


Two possible solutions:

  • My PATH has backslashes instead of forward ones.
  • your first line contains a typo, should be c:\program files\git\cmd

One more: If your path includes spaces, enclose it in quotes:

set PATH=%PATH%;"C:\Program Files\Git\cmd"


During Git installation, in the path environment settings chose the following one.Even I had the same problem, of git not executed on my normal Command Line, but i just reinstalled it with the setting "Run Git from the Windows Command Prompt"

enter image description here


Just open cmd and run this command:

set PATH=%PATH%;"C:\Program Files\Git\cmd"