JohnDoe66 JohnDoe66 - 1 year ago 163
Git Question

Error when push commits with Github: fatal: could not read Username

Since few time, I use Github for my projects and I have an issue when I want to push commits.

To beginning, I have forked a repository. Then I have cloned the fork (with command line

git clone ...
) and, after doing modifications, I have committed with success (
git commit -a

After this, I have tried to push commits with command line
git push
but I obtain the following error:

fatal: could not read Username for '': No such file or directory

Have you got an idea to resolve this issue?

Answer Source

What I had to do was:

git remote rm origin
git remote add origin ''

Then, I was able to push my changes.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download