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 trialMike Kryski
2,625 Pointsgit remote add not working
I can't seem to get passed the first part of the challenge, but I'm not sure what I'm missing I'm doing wrong... I need to add a remote repo which is hosted at git://mygithosting.com/git_basics/cool_stuff.git. This is what I tired:
git remote add cool_stuff git://mygithosting.com/git_basics/cool_stuff.git
3 Answers
William Li
Courses Plus Student 26,868 PointsHi Mike, are you referring to 1st part of this challenge?
It only asks you to clone the repo. git remote add
isn't the right tool for this task.
git clone git://mygithosting.com/git_basics/cool_stuff.git
This would be the correct way of cloning a remote repo. Hope it helps.
Cena Mayo
55,236 PointsHi Mike,
Does the cool_stuff repo exist on mygithosting already? Not sure how that service works, but on Github you have to create the repo first, then use git remote add to connect your local repo to it.
Best, Cena
Mike Kryski
2,625 PointsThanks for the quick responses! I completely missed that I only needed to clone the repo. I've selected William's answer as the best answer.
Thanks again!