ubuntu下 升级git


使用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

猜你喜欢

转载自huaonline.iteye.com/blog/1881488