Setup Git
Just in case, checked latest version of Linux and CentOS.
# cat /proc/version Linux version 2.6.18-194.26.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Nov 9 12:54:20 EST 2010 # cat /etc/redhat-release CentOS release 5.7 (Final)
1. Check content on the repository.
# rpm -qpl http://repo.webtatic.com/yum/centos/5/latest.rpm
2. Install the repository.
# rpm -ivh http://repo.webtatic.com/yum/centos/5/latest.rpm
3. Check if the installation is success.
# ls /etc/yum.repos.d webtatic.repo # vi /etc/yum.repos.d/webtatic.repo
4. Install Git from Webtatic repo
# yum install --enablerepo=webtatic git # git --version git version 1.7.7.3
5. Configure little bit
# git config --global user.name "yourname" # git config --global user.email "yourname@yourdomain.com" # git config --global color.diff auto # git config --global color.status auto # git config --global color.branch auto # git config -l
http://d.hatena.ne.jp/inouetakuya/20110603/1307098190
http://akibe.com/centos-setup-12-git/
Complete!