【发布时间】:2014-02-24 13:35:44
【问题描述】:
我使用git init --bare 在我的服务器上创建了自己的 git 存储库。我在那里添加了一些文件,然后通过git clone http://www.example.com/mygit/repo 从 myserver 克隆了我的 repo,它完美地克隆了。现在我想通过git push origin master 推送这个目录,但它返回代码 22。我还将我的 PC 的 ssh 公钥添加到http://www.example.com/mygit/repo/.ssh/authorized_keys,但我仍然无法推送到我的仓库。
【问题讨论】:
-
您能检查一下您的 http 错误日志,看看那里是否显示任何错误吗?