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

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

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.

Thank you so much mate..

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.

I have already downloaded GIT but still its not working.

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.

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.

thanks chris