I'm trying to push my project to github repository. On my new project I did following commands:
git init
git commit -m "first commit"
git remote add origin https://github.com/myaccount/MyRepoName.git
But when I'm trying to push my commit like this:
git push -u origin master
It gives me following error information:
fatal: Full write to remote helper failed: Invalid argument
Error reading command stream
I found nothing about this in google. Please, help me fix this issue.
This error message comes from transport-helper.c, which calls one of the git remote helpers.
It is possible, after the recent DDoS that GitHub had to endure, that not all repos support well https push, hence the suggestion to switch transport protocol (with ssh
git@github.com:username/repo.git
, as commented by gnuanu).But you should check in a few days if https works again for your repo.