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

JavaScript

git command error

Hi, I am currently doing this course https://teamtreehouse.com/library/initializing-a-repository, I am using a mac and when I typed cd medals, I got this error on the console, bash: cd: medals: No such file or directory, can someone tell me what this means?

1 Answer

cd means change directory. You got that error because you don't have a directory named medals in the current directory. You can either make it and then cd into it:

mkdir medals
cd medals

Or if you know it exists, cd into the directory that has it and then cd into medals.