Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Ł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.

Chris Shaw
Chris Shaw
26,676 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,676 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.