Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PlayN示例:git clone命令引发错误:是否在服务器上运行git update server info?_Git_Sample_Playn - Fatal编程技术网

PlayN示例:git clone命令引发错误:是否在服务器上运行git update server info?

PlayN示例:git clone命令引发错误:是否在服务器上运行git update server info?,git,sample,playn,Git,Sample,Playn,我正试图按照PlayN的入门说明进行操作 尝试克隆存储库时出错: Macintosh: test dev $ git clone https://code.google.com/p/playn-samples Initialized empty Git repository in /home/dev/test/playn-samples/.git/ fatal: https://code.google.com/p/playn-samples/info/refs not found: di

我正试图按照PlayN的入门说明进行操作

尝试克隆存储库时出错:

Macintosh: test dev $ git clone https://code.google.com/p/playn-samples    
Initialized empty Git repository in /home/dev/test/playn-samples/.git/
fatal: https://code.google.com/p/playn-samples/info/refs not found: did you run git update-server-info on the server?
这是git服务器上的问题,还是我需要做些什么才能让这个命令正常工作


更新:
我可以通过将我的git客户端从1.6.5.2更新到1.7.7.3来解决这个问题。我看到当您有一个错误配置的
.netrc
文件时会发生这种情况。你有
~/.netrc
文件吗?如果是这样,请尝试将其重命名为其他名称,然后重新发出
git clone
命令

如果有效,那么你应该确保你的
.netrc
只包含有效的条目,如果它包含
code.google.com
的条目,确保它包含正确的谷歌代码密码。有效的
.netrc
条目具有以下格式:

machine HOSTNAME login USERNAME password PASSWORD

其中,主机名、用户名和密码将替换为给定帐户的相应值。

谢谢提示。我试过了,但没有解决我的问题。通过将git客户端从1.6.5.2更新到1.7.7.3,我修复了我的问题。