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 trialJerome vanGaalen
18,941 PointsHow do I fix this in github?
I accidentally put a comma instead of a period in my original git remote add origin path and now I get an error message and cant fix it.
1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Jerome,
What's the error you're getting exactly?
It might be now that Git has taken an invalid URL as it's Repository of origin.
You can verify this with
git remote get-url origin
This will return a string that is the URL (if any) of the Repository that is attached to your local git repository. If it is not the URL you wanted or expected you can change it with a similar command.
git remote set-url origin <link>
Where <link>
is where you would put the absolute URL to your GitHub repository. It's a real pain having to remember so many URL'S so I just copy the URL straight from GitHub or Bitbucket and paste it in when I'm linking a remote repository for the first time.
I think that'll get you up and running again but let me know if you need more help :)
Jerome vanGaalen
18,941 PointsJerome vanGaalen
18,941 PointsThank you, that is exactly what happened...but now I have another issue. I have uploaded my files, but my site won't show up on the web. jvangaalen.github.io I have an index.html file in so I don't know why it wont work.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsIf you've only just uploaded it then you may have to wait an hour or so before Github's hosting servers recognise your site. Keep checking back, I'm sure it'll show up! :-)