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

General Discussion

Scott James
Scott James
4,298 Points

Git terminal commands not working

Hi Everyone

I have started to take the course on Git, but I am stuck on the first terminal command.

If I enter the command $ git --version it returns: git version 1.8.5.2 (Apple Git-48). If I then try and enter the command: $ git init my_first-repository it returns: -bash: $: command not found.

Really hoping that some one can give me some advice as to why this isn't working?

Thanks for any help that is offered :) Scott

1 Answer

Scott James
Scott James
4,298 Points

Ok I have just read else where that I do not add the $ in front of the command.

From the article:

"Don’t type the $ character. The $ character is a cue that you should enter a shell command."

Hopefully this might help anyone else who has this issue.