如何在centOS 6中更新git

Yas*_*ini 2 centos git vagrant

我已经使用 vagrant 在 centOS 6 上安装了厨师工作站。我当前的 git 版本是 1.7.1

git config --list,却是不接受push.default = simple。如何通过终端将此 git 版本更新到最新版本。

任何帮助表示赞赏!

小智 5

在 Centos 6.6 Vagrant VM “minimal/centos6”上将 GIT 版本更新为 2.4.4

yum install curl-devel expat-devel libcurl-devel perl-devel asciidoc xmlto xz zlib-devel gettext

curl -kOL https://www.kernel.org/pub/software/scm/git/git-2.4.4.tar.xz

tar xvf git-2.4.4.tar.xz

cd git-2.4.4

make configure

./configure --prefix=/usr

make all

sudo make install install-doc install-html
Run Code Online (Sandbox Code Playgroud)

请参阅https://serverfault.com/questions/448814/yum-doesnt-install-latest-version-of-git-on-centos6/604124#604124