Git is a great version control system which is used everywhere these days. The process of installing git on SUSE is as easy as other distros at moment but is not to difficult if you follow these steps. To my knowledge at this point in time there is no git rpm package for SUSE. There is a Fedora RPM but it fails to install correctly due to many missing dependencies.
No problem. You will have to build and install from source. Go to http://git-scm.com/download and download the latest source. At the time of this guide the latest version is 1.7.3.4.
Once you have the tarball extract the source.
$ tar xvjf git-1.7.3.4.tar.bz2
You can now run configure.
$ ./configure
Unfortunatly you will run into a missing libz dependency and the build will fail.
$ make
GIT_VERSION = 1.7.3.4
* new build flags or prefix
CC fast-import.o
In file included from builtin.h:6,
from fast-import.c:147:
cache.h:17:18: error: zlib.h: No such file or directory
To solve this you will need the zlib-devel package which you can download from here:
$ wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Base:/build/standard/x86_64/zlib-devel-1.2.3-135.52.x86_64.rpm
Install the RPM package.
$ sudo rpm -ivh zlib-devel-1.2.3-135.52.x86_64.rpm
You should now be able to successfully build and install git.
$ make && make install