低版本时osc git clone git pull git push 会报401错误
1、准备工作
yum install curl curl-devel zlib-devel openssl-devel perl perl-devel
cpio expat-devel gettext-devel
2、下载git
去下载页面:https://code.google.com/p/git-core/
下载:
wget https://git-core.googlecode.com/files/git-1.9.0.tar.gz
3、解压安装
tar -zvxf git-1.9.0.tar.gz
cd git-1.9.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
#增加软连接
ln -s /usr/local/git/bin/* /usr/bin/
git --version