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 Remote Work

What am I missing in the git remote add command?

Stuck on a quiz question. To add a remote named "tommy" is this not the code: git remote add tommy http://copyandpastedaddressfromquiz.com ?

I've looked in my own code from the videos and the above looks right, but I'm getting a returned answer of having the wrong address. I've tried typing out the address, and copying and pasting it, but I must be missing something.

Post your attempt with the url from the quiz.

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

You didn't by any chance use the same URL for Task 3 that you did for Task 1, did you? They are two different URLs.

The correct solution for Task 3 is:

git remote add tommy http://tommysgitstuff.com/git_basics/cool_stuff.git

Well, maybe it was fatigue and the answer was right in front of me, but I re-entered everything the next morning and that command worked. If I had to guess, I suspect i had an errant space somewhere and just missed it.