Git push gives Error reading command stream

你说的曾经没有我的故事 提交于 2019-12-08 05:28:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/19188396/git-push-gives-error-reading-command-stream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!