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!
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
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 Hulet47,909 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