git 安装及常见问题处理

卸载掉自带的:

  yum remove git

安装:

  yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

  接着

  https://github.com/git/git/blob/master/INSTALL

问题及解决方式:

[root@192 game_root_api]# git push -u origin master
fatal: unable to access 'https://github.com/xinweihao/xwhgame_rout.git/': Peer reports incompatible or unsupported protocol version.
[root@192 game_root_api]# yum update -y nss curl libcurl 

 

点赞