401 Unauthorized while accessing https://git.oschina.net/ oschina

git 版本的问题

git –version

最低1.7.10

所以得去升级:

Step 1: Install rpmforge Repository
RHEL/CentOS 6 – 64bit
# rpm -i ‘http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm’
# rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt

RHEL/CentOS 6 – 32bit
# rpm -i ‘http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm’
# rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Step 2: Edit rpmforge Yum Repository File
Edit your rpmforge repository file and change enabled=1 from 0 in [rpmforge-extras] section.
# vim /etc/yum.repos.d/rpmforge.repo
Step 3: Upgrade git Version
# yum update git
Check git version
# git –version