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

Ruby

Connection to GitHub error in the Terminal

When I write Git Init in the terminal I get this message: -bash: git: command not found

In lesson "Push to GitHub" you show another answer than I get.

Please help me to solve this.

Best regards Daniel

1 Answer

Patrick Cooney
Patrick Cooney
12,216 Points

If you are sure you have git installed and you are still getting that message it is probably because you don't have git in your PATH variable.

Rather than my trying to give you a step-by-step I'd recommend you watch the environment variables video here on treehouse. Jim does a very good job of explaining it. Skip to 12:00 for instant satisfaction, though I recommend you watch the whole deep dive at some point if you're not familiar with the command line.

Thanks Patrick. I'am a newbie and forgot to install Git in my PATH variable!

:)