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 Hub Repository

Hi I am trying to push to my repository and i get this error when i enter my username and password. I've done exactly what was in the video, can't work out why it won't connect. Please can someone help

From Terminal:

treehouse:~/projects/treebook (master #) $ git push -u origin master
Username for 'https://github.com': creatory
Password for 'https://creatory@github.com': 
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/creatory/treebook.git'

2 Answers

Your remote is set up and connected to your local with matching branch names?

James Barnett
James Barnett
39,199 Points

Did you do a commit before trying to push?

source: http://stackoverflow.com/a/7572252/1756132