您好,我克隆了另一台服务器上的本地存储库http:// localipaddress / git / project 。 它创build了一个空的存储库。 当我试图从存储库拉,它给了我一个错误
你的configuration指定从远程与ref'master'合并,但是没有检测到这样的ref。
在推我收到以下消息
错误:无法访问url“ http:// localipaddress / git / project ”,返回码22。 致命的git-http-push失败
什么可能是错的。
问题已解决。 在我的情况下,它只是克隆时使用以下url
http://用户名:密码@ localipaddress / git / project ,
而不是http:// localipaddress / git / project 。
用户名/密码是由repsoitory处理的方式可能会有一些问题。
也在.git / config文件中,需要检查是否存在以下详细信息
[remote "origin"] url = http://username:password@localipaddress/git/project fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master