Git push给出错误读取命令流

时间:2013-10-04 18:34:44

标签: git github push

我正在尝试将我的项目推送到github存储库。在我的新项目中,我做了以下命令:

git init
git commit -m "first commit"
git remote add origin https://github.com/myaccount/MyRepoName.git

但是当我试图像这样推动我的提交时:

git push -u origin master

它提供了以下错误信息:

fatal: Full write to remote helper failed: Invalid argument
Error reading command stream

我在google中找不到任何相关内容。请帮我解决这个问题。

1 个答案:

答案 0 :(得分:1)

此错误消息来自transport-helper.c,它会调用其中一个git remote helpers

在GitHub必须忍受的recent DDoS之后,有可能并非所有repos都支持https推送,因此建议切换传输协议(使用ssh git@github.com:username/repo.git,为{{3} } commented)。

但是,如果https再次用于您的回购,您应该在几天内办理登机手续。