蔡7180 发表于 2016-5-14 01:28:54

Centos 编译安装Git(git clone git push git pull 401错误)

  低版本时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
cdgit-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
  
  
页: [1]
查看完整版本: Centos 编译安装Git(git clone git push git pull 401错误)