【发布时间】:2013-10-04 18:34:44
【问题描述】:
我正在尝试将我的项目推送到 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
我在谷歌上没有找到任何关于这个的信息。请帮我解决这个问题。
【问题讨论】:
-
使用 ssh 读/写 URL 而不是使用只读 https url。它应该像 git@github.com/myaccount/MyRepoName.git。
-
现在它给了我消息:致命:'git@github.com/myaccount/MyRepoName.git' 似乎不是 git 存储库致命:无法从远程存储库读取。请确保您拥有正确的访问权限并且存储库存在。
-
抱歉打错了。应该是,git@github.com:username/Repo.git
-
好的,它看起来解决了这个问题。谢谢:)