本文介绍了Git推送给错误读取命令流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  git init 
git commit -m第一次提交
git remote add origin https://github.com/myaccount/MyRepoName.git

但是当我'm试图推动我这样的提交:

  git push -u原始大师



它给了我以下的错误信息:

 致命:完全写入远程助手失败:无效参数
读取命令流时出错

我发现没有关于这在谷歌。请帮我解决这个问题。

解决方案

此错误消息来自,它调用其中一个。



有可能在 GitHub不得不忍受,并非所有的回购支持很好的https推送,因此建议切换传输协议(使用ssh [email protected]:username / repo.git ,as 进行推送给出错误阅读命令流#comment28391349_19188396>评论) p>

但是,您应该在几天后检查https是否再次用于您的回购。


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 [email protected]:username/repo.git, as commented by gnuanu).

But you should check in a few days if https works again for your repo.

这篇关于Git推送给错误读取命令流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:27