STUDY WHILE YOU ARE BORING


  • 首頁

  • 搜索

  • 技术

  • Tags

  • 关于我

yum安装git-v2.x版本

發表於 November 1, 2018   |   作者: Tim   |   分类: 技术   |   评论

在bower项目的时候显示如下报错

Initialized empty Git repository in /root/phpPgAdmin6/.git/
error:  while accessing https://github.com/HuasoFoundries/phpPgAdmin6.git/info/refs

访问提示中的网址报如下信息

Please upgrade your git client.
GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days

就是说需要升级git,我的操作系统是centos6.5,git版本是再带的V1.7.1(使用git --version 查看)

首先卸载旧版本git

yum remove git  

直接使用这个命令下载的还是1.7.1版本的。不使用源码进行编译是因为依赖太多,总会缺东西。

yum install git

可以使用 WANDisco's CentOS repository去安装 Git 2.x.

Install WANDisco repo package:

yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm

Install the latest version of Git 2.x:

yum install git

如果再bower时出现SSL connect error,执行

git config --global http.sslversion tlsv1

作者:我有一只小傲娇
来源:CSDN
原文:https://blog.csdn.net/t3369/article/details/79562853
版权声明:本文为博主原创文章,转载请附上博文链接!

centos, git
SQLServer创建触发器,阻止某个表的记录插入
CentOS6 安装 php7.2+

钜添

54 文章
2 分類
1 页面
GitHub 日记技术
php apache centos macos mysql https shadowsocks mac 微信 ups svn javascript outline accesskey Chrome Extension letsencrypt ssl free certification certbo wildcard renew cloudflare pgsql 归档 binlog isset array_key_exists redmine axure
© 2021 钜添   |   文章 RSS     |  登录
由 Typecho 强力驱动
主題 - NexT
Send message encrypted and private - Msg2
Build your Under Construction Page without hosting - UnderConstruct.IO