Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Colin Sandlin4,512 Points
Getting fatal: unable to access (link)
treehouse:~/workspace/medals$ git remote add origin https://github.com/ColinSandlin/medals.git fatal: remote origin already exists. treehouse:~/workspace/medals$ git push -u origin master fatal: unable to access 'https://git/': Could not resolve host: git
Can anyone help me figure out what's going on? Thanks.
Michael HuletTreehouse Moderator 47,822 Points
It looks like you already have a remote repository set up called
origin. Because of this,
git refuses to add another one called
origin, and the first command you wrote doesn't actually apply. Since it already exists, you want to modify
origin's URL instead of make a new remote called
origin. You'd do that like this:
git remote set-url origin https://github.com/ColinSandlin/medals.git
After that, your
origin remote should work just fine