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

Development Tools Git Basics Working With Remote Repositories Cloning

error: unknown switch `/'

Whether I use the Terminal on my Mac or the Treehouse Terminal, the result is the same. I enter exactly what he does and I get the error.

I will answer this myself. I am SO used to the super fantastic screen resolution on my Chromebook, that I mistook the ~ for a - on my Macbook. I was typing: git clone -/my_file_name.

Hopefully, this will help someone else.

Melissa Hill
Melissa Hill
8,241 Points

Same here, I thought the tilda character was a dash.

The code should read: git remote add our_clone ~/our_clone_project/

Michael Metzger
Michael Metzger
11,983 Points

you actually don't need the ~/. It will work fine without it.

THANK YOU:) I made the same mistake

1 Answer

Jonathan Koefman
Jonathan Koefman
762 Points

Me too! And thanks for taking the time to write it out