方法一:进到git目录,重新编译
$ yum install curl-devel
$ # cd to wherever the source for git is
$ cd /usr/local/src/git-1.9.2
$ ./configure
$ make
$ make install
方法二:
yum -y install git-http
第二个方法我没测试,因为搞完第一个方法,问题就解决了。第一种方法比较慢,需要重新编译git。
方法三: 用git代替https。我之前也没看到,可以试一下。
git clone --recursive git://github.com/ceph/ceph.git