PHP

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

Git Windows: 'git is not recognized as an internal or external command'

When cloning Homestead for Laravel I a getting error 'git is not recognized as an internal or external command. operable program or batch file.' please help..Thanks

2 Answers

Chris Shaw
Chris Shaw
26,631 Points

Hi Madhiv,

You will need to download GIT and install it, once it's installed you may need to restart your PC as sometimes the PATH won't update in real time.

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

I have already downloaded GIT but still its not working.

Chris Shaw
Chris Shaw
26,631 Points

If you simply run git in a command prompt what do you get? If you get an error by ensuring it's in your environment PATH.

Madhvi Maheshwari
Madhvi Maheshwari
7,788 Points

i have added C:\Users\dell\AppData\Local\GitHub\PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7\libexec\git-core this path in the environment variable. but still its not working.

Łukasz Czuliński
Łukasz Czuliński
8,646 Points

I was having the exact same problem. When you installed Git, did you select the option 'run Git from the Windows command prompt'?

If not, try re-installing and make sure you select that option. http://git-scm.com/download.

Once I did this everything worked fine in the terminal.