2013-10-04 76 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