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 trialNeill dev
Courses Plus Student 23,163 PointsPushing to a remote GitHub repository, Git ERROR for Windows users. Found during Ruby track, build a social network.
FYI
Git Command - git push -u origin master
Error returned - fatal: could not read Username for 'https://github.com': No such file or directory
Or similar.
If you install using railsinstaller.org Windows installer app you get the latest Git version which is currently broken 1.8.5.2.
You can determine the version of your git by typing in GitBash:
git --version The broken version of Git is 1.8.5.2.msysgit.0.
This is a bug as per stackoverflow bug detail
If this version is installed, you will need to uninstall Git for Windows.
Navigate to Program Files/Git and run the uninstall script unins000.
Once this completes successfully, you can run the installer at:
You should now see:
git --version git version 1.8.4.msysgit.0
And be able to push to your remote repo.
Remember to remove the remote origin you have already applied to your repo
git remote rm origin
Then follow steps as you did before finding the error.
Hope that helps a few fellow windows hethans along the way, it was annoying me for a day or 2. I've now installed a linux partition aswell;-)
thx Neill