error: The requested URL returned error: 401 Unauthorized while accessing h

centos 6.7 当从git@osc中clone时返回以下错误信息:html

error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/.....git

缘由是本机的git版本过低了,升级以下:github

前提:centos

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc

yum install  gcc perl-ExtUtils-MakeMaker

 

卸载Centos自带的git1.7.1:curl

sudo yum remove git

 

下载git2.2.1并将安装ui

wget https://github.com/git/git/archive/v2.2.1.tar.gz
tar zxvf v2.2.1.tar.gz -C /usr/local/
cd /usr/local/git-2.2.1
./configure
make
make install

 

完成安装了,查看:git versionurl

参考:.net

http://www.cnblogs.com/shenliang123/p/3824383.htmlcode

http://www.tuicool.com/articles/Y3eqIfhtm

相关文章
相关标签/搜索