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 trialAndy Wilson
2,024 PointsGit 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
emiliakubokirschenbaum
8,816 PointsYour remote is set up and connected to your local with matching branch names?
James Barnett
39,199 PointsDid you do a commit
before trying to push
?