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

What I had to do was:

git remote rm origin
git remote add origin 'git@github.com:username/repo.git'

Then, I was able to push my changes.

Leave a Comment