centos下git clone失败处理方法
2015-12-09 14:47
761 查看
$ git clone https://code.csdn.net/***/***.git
Initialized empty Git repository in /home/****/****/***/.git/
error: The requested URL returned error: 401 Unauthorized while accessing https://code.csdn.net/***/***.git/info/refs
fatal: HTTP request failed
查看git版本
git version 1.7.1
在网上搜索原因,有人提到更新git版本解决问题。
查看git 版本
$ git --version
git version 1.7.12.4
git升级后,问题解决。
Initialized empty Git repository in /home/****/****/***/.git/
error: The requested URL returned error: 401 Unauthorized while accessing https://code.csdn.net/***/***.git/info/refs
fatal: HTTP request failed
查看git版本
git version 1.7.1
在网上搜索原因,有人提到更新git版本解决问题。
1. rpm增加rpmforge源 sudo rpm -i http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 可以在 http://pkgs.repoforge.org/rpmforge-release上查看匹配你服务器的对应源 2. 安装证书 sudo rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt 3. 更新rpmforge源 sudo yum --enablerepo=rpmforge-extras update 4. 查询可用git版本 yum --enablerepo=rpmforge-extras provides git 已加载插件:security git-1.7.1-3.el6_4.1.x86_64 : Fast Version Control System Repo : base 匹配来自于: git-1.7.8.2-2.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.9.6-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.3.4-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.6.1-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.10-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.11.1-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.10.4-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.6.4-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.6-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.11.3-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.12.4-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.10.1-1.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.7.4-2.el6.rfx.x86_64 : Git core and tools Repo : rpmforge-extras 匹配来自于: git-1.7.1-3.el6_4.1.x86_64 : Fast Version Control System Repo : installed 匹配来自于: Other : 提供依赖满足:git 5. 安装git sudo yum --enablerepo=rpmforge-extras install git-1.7.12.4-1.el6.rfx.x86_64
查看git 版本
$ git --version
git version 1.7.12.4
git升级后,问题解决。
相关文章推荐
- Linux下JVM中可生成的最大Thread数量
- linux常用命令
- VirtualBox虚拟机添加虚拟磁盘为Linux系统扩充磁盘空间
- 当Linux系统出现重启网卡出现ifup和ifdown文件或目录不存在问题,Shutting down interface eth0: /etc/init.d/functions:line 517:
- linux tips
- linux下命令取IP地址的多种方法
- linux基础(五)----linux命令系统学习----系统管理命令
- linux基础(五)----linux命令系统学习----系统管理命令
- linux下通过acl配置灵活目录文件权限(可用于ftp,web服务器的用户权限控制)
- Kali Linux Web***测试之 WebSploit
- Kali Linux Web渗透测试之 WebSploit 推荐
- linux免密码登录
- rhel7和centos7找回root密码 以及rhel6和centos6找回root密码
- linux下获取硬盘使用情况[总结]
- ubuntu下使用PowerDesigner15(亲测可用)
- Linux中tty框架与uart框架之间的调用关系剖析
- linux笔记 隐藏属性lsattr chattr
- linux安装jdk
- linux命令: tree的c实现
- 时间都去哪儿了—兄弟连IT教育