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 trialColin Sandlin
4,512 PointsGetting 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.
1 Answer
Michael Hulet
47,913 PointsIt 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
Skye Breeze
10,620 PointsSkye Breeze
10,620 PointsThis response helped me too, thanks :D