Install Latest Git on Centos
in Tips and Tricks
Install Latest Git on Centos
- Download with yum.
yum install git
- If you need the latest, try to remove git first.
yum remove git
- Change directory to tmp.
cd /tmp
- Download the latest git https://github.com/git/git/releases. Example we use 2.16.
curl -O -L https://github.com/git/git/archive/v2.16.0-rc2.tar.gz
- Extract tar.
tar -zxvf v2.16.0-rc2.tar.gz
- Execute as root.
cd git-v2.16.0
make clean
make configure
sudo make install
- Check git version.
git --version
Related