Cannot Push to Master
I can't figure out the workflow on this. I keep getting the following error when trying to push to my repository:
fatal: could not read Username for 'https://github.com': No such file or directory
I've set up the repository on Github, then I git cloned it.
Locally it's fine. I made some changes to the README.md file. Then, I git add -Ad it, so the changes are ready. I then git commit -m '...'d it, and the commit is ready.
I set up the remote using:
git remote add Midlife https://github.com/cireficc/Midlife.git
So now I should be able to git push Midlife master because the commit is ready to go. But no, I run into the 'could not read Username' error.
I've set up the local commit info using
git config --global user.name "<my name>" git config --global user.email "<my email>"
so I really don't know what's wrong.
It doesn't ask me for credentials but just gives me the error message quoted above, so I'm kind of lost.
That is a bug in current Git for Windows (version 18.104.22.168 aka Git-22.214.171.124-preview20131230).
You can see this thread for the discussion and instructions to fix it.
If a newer Git for Windows has been released, try installing that and see if it fixes the issue. If it doesn't please report it to the developers, and use an older version, the fix suggested in that thread, or an SSH remote instead.
Edit: As more users are still running into this problem, I have created an unofficial fix release 126.96.36.199 (Git-188.8.131.52-nevik20140208) which includes the fix for this bug presented in the mailinglist thread linked above. As of now (2014-02-09), there's no new official Git for Windows reease yet, so this should serve until there is one.