更新时间:2023-02-25 11:16:15
CentOS 7附带GIT版本1.8.3.1。这个版本不支持像git fetch-pack这样的命令。要解决此问题,您可以从IUS存储库更新服务器上的GIT。 update git on Centos 7 to version 2 from third-party IUS repo
$ git --version
git version 1.8.3.1
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
sudo yum install git