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 trialBen Sharir
561 Pointsgit push -u origin master connection error
got this error while trying to $git push -u origin master
Why did the http request failed?
4 Answers
Luke Ward
9,154 PointsTry doing this first to remove the bad origin git remote rm origin
. Then try adding the origin again by doing https://github.com/username/repository-name
.
Luke Ward
9,154 PointsYou need to add the origin to your repository not your profile so https://github.com/username/repository-name
Ben Sharir
561 PointsThanks Luke Ward! I tried to add the origin to my repository as you suggested and this is what I got:
What am I doing wrong?
Neil Edwards
1,199 PointsThanks Luke, I had a similar problem. Removing then re-creating the origin fixed it.