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

Development Tools

Problem when pushing to GitHub - Git Basics

Hi there, I am following along with Tommy's tutorial, and I am having a couple of issues pushing a personal repository over onto Github.

I try typing the add origin command: https://github.com/rsy644/newrepo.git, this seems to work, but when I type in: git push -u origin master, I keep getting the message: " fatal - could not read Username for "https://github.com" - no such file or directory "

I have also tried using the ssh method, but I get a separate, different error message. "Permission denied - could not read from remote repository".

The permissions were set to 'Public' on the previous page.

Anyone have any ideas?

Regards,

Robert London, UK

3 Answers

Jon W
Jon W
6,185 Points

Are you using Git 1.8.5? Apparently it was a bug in that version and the way around it is to use SSH or a url containing your username and password (NOT RECOMMENDED!).

However if you upgrade Git to the latest version it should be fixed.

Thanks Jon! Yes as it happens I am using Git 1.8.5.2 (preview version). I will try upgrading - see if that makes a difference :)

Marie Veverka
Marie Veverka
12,117 Points

Thank you too Jon! I was having the same issue and I was so frustrated until I found this and updated my version of Git! Problem solved! Yay!