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

Björn Wauben
Björn Wauben
10,748 Points

GIT remote add repository

I have trouble passing a challenge: Question is:

"I've got my own copy of the repository hosted at http://tommysgitstuff.com/git_basics/cool_stuff.git. What command would you use to add my copy of the repository as a remote? Give the remote the name "tommy."

I tried this:

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

When I submit this I get the following message:

"Bummer! git remote is the right command, but your arguments are wrong. Remember you're trying to add a remote, named tommy, at the address specified."

I have no clue what to change. I checked the video's again and can't find the error.

2 Answers

28,736 Points

You are close to the right answer, you just don't have to type the quotes around tommy. this way

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

Jacob Smith
Jacob Smith
10,926 Points

I know this an old feed, but just to add:

When pasting the URL in I had forgotten to remove the period that was at the end of statement.