2013-10-04 116 views
1

我试图把我的项目推到github存储库。在我的新项目,我没有下面的命令:Git推送错误阅读命令流

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 

我在谷歌中没有发现这件事。请帮我解决这个问题。

+0

使用ssh读/写URL而不是使用只读https网址。它应该像[email protected]/myaccount/MyRepoName.git。 – gnuanu

+0

现在它给我留言: 致命:'[email protected]/myaccount/MyRepoName.git'似乎不是git存储库 fatal:无法从远程存储库读取。 请确保您拥有正确的访问权限 并存在存储库。 – kemot90

+1

对不起,错字。应该是, [email protected]:username/Repo.git – gnuanu

回答

1

此错误消息来自transport-helper.c,它调用git remote helpers之一。

这是可能的,那recent DDoS GitHub的不得不忍受后,不是所有的回购支持以及HTTPS推,因此建议(由gnuanu使用ssh [email protected]:username/repo.git,如commented)切换传输协议。

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

+0

是的,正如我在回答gnuanu时所说的,它适用于我:)谢谢! – kemot90