方法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包