ubuntu升级git

来源:互联网 发布:淘宝开店教学大纲 编辑:程序博客网 时间:2024/05/20 03:45

报错: fatal: git 1.7.2 or later required

使用git提交github工程的时候, 报错: 

Java代码  收藏代码
  1. Error: The requested URL returned error: 403 while accessing  
  2. # https://github.com/user/repo.git/info/refs  
  3. # fatal: HTTP request failed  

查看官方的指南: 
https://help.github.com/articles/https-cloning-errors 


结果发现git版本为1.7.4,(git --version)而官方提示必须是1.7.10及以后版本 

升级 

增加ppa 
sudo apt-add-repository ppa:git-core/ppa 
sudo apt-get update 
sudo apt-get install git 
如果本地已经安装过Git,可以使用升级命令: 
sudo apt-get dist-upgrade
原创粉丝点击