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 trial

Ruby

git push -u origin master connection error

got this error while trying to $git push -u origin master

git push error

Why did the http request failed?

4 Answers

Luke Ward
Luke Ward
9,154 Points

Try 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
Luke Ward
9,154 Points

You need to add the origin to your repository not your profile so https://github.com/username/repository-name

Thanks Luke Ward! I tried to add the origin to my repository as you suggested and this is what I got: add origin to repository error

What am I doing wrong?

Thanks Luke, I had a similar problem. Removing then re-creating the origin fixed it.