方法1:
一共两个步骤
1) 确定你的repo
2) 跑指令
$ sudo zypper addrepo http://download.opensuse.org/repositories/devel:/tools:/scm/SLE_11_SP2/devel:tools:scm.repo
$ sudo zypper install git-core
方法2:https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git
https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git
去git下个源码包,自己去你机器上编译一下就好了
这里有说如何从源码安装:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
简单的说,安装了先关需要的包之后,下载git的源码
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
这里有说如何从源码安装:

简单的说,安装了先关需要的包之后,下载git的源码
$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info
就可以了
rpm -ql zlib搜索zlib包