fedora 9 系统环境下
[root@localhost Handset]# git clone git@server_ip:zs_test
Initialized empty Git repository in /root/git_work/Handset/zs_test/.git/fatal: no matching remote head
fetch-pack from 'git@server_ip:zs_test' failed.
[root@localhost Handset]# git --version
git version 1.5.4.5
ubuntu 11.10 系统环境下
camille@Product:~/git-95-admin/gitolite-admin$ git

在Fedora 9系统环境下,使用git clone一个空的裸仓库时出现'fatal: no matching remote head'的错误,而在Ubuntu 11.10系统下则只有警告。经验证,该问题是由于Fedora 9上的git版本1.5.4.5过低所致。升级git到1.7.8后,成功克隆空裸仓库。此问题提示我们需要保持git版本的更新以避免兼容性问题。
最低0.47元/天 解锁文章
1257

被折叠的 条评论
为什么被折叠?



