基础服务
【未分类】
备忘的一些链接
图床列表 - imgtu
【目录】生活&其它
游戏修改器-nes游戏修改记录
尝试操作系统-Community20.3
哈哈哈
警世恒言/人生谎言
使用视频采集卡让笔记本当nuc的屏幕
【已废弃】获取微信好友-itchat
获取微信好友-pc hook
易混词语(尽量避免使用)
有用的链接(工具)
zy服务版本记录
注意安全、生命、健康
日文输入法
安卓模拟器中使用微信充值微信豆
备忘小技巧
excel
网站生成
静态网站生成工具-vuepress
静态网站生成工具-hugo
【目录】代码片段
动态显示select的option列表
同时显示汉字和拼音
常用java代码
性能
jmeter
jmeter-性能
ops
kubernetes
jenkins
drone
服务升级记录
mrdoc升级记录
mysql升级记录
方案
跨语言的web服务间接口调用安全问题
【其它编程语言】
编程-javascript
编程-python
前端框架-react
编程-golang
c语言
.NET(dotnet)
【前端】
Lua简明教程
【缓存】redis
redis
服务搭建
搭建mrdoc
主机服务及端口列表
安装centos7虚拟机
docker
虚拟机-vagrant和virtualbox
安装AlpineLinux虚拟机
docker machine
docker-swarm
配置https域名
centos7服务器清理磁盘空间
vscode
multipass
ubuntu 使用
【数据库】mysql
mysql命令
mysql
HashDatabaseAndTableTest.java
mysql-快速导入100w条记录
mysql高级命令
用于排查问题的一些常见命令
基础信息
mysql5.7升级到8
maven相关
maven命令行汇总
自动升级maven工程中的项目版本
maven基础及高级
windows系统使用
windows客户端软件使用
windows 宿主机 + virtualbox虚拟机共同使用
windows常见问题记录
新的开发环境
windows11配置
windows系统下载
命令行安装软件 & 配置软件
折腾谷歌浏览器
浏览器插件列表
windows音频视频下载工具
云服务
服务-tao-道
【目录】技术分享
技术分享-todo
【目录】shell
windows常用命令
shell脚本汇总
shell命令汇总
windows常用脚本
命令行操作录制工具 asciinema-player
windows软件包管理器scoop
网络相关
服务使用
nexus
jenkins
apifox
notify (bark-server)
开发人员相关
IDEA相关配置
压力测试工具-jmeter
【目录】git集合
git常用操作
gitlab替代品:gitea搭建及简单使用
【git神技】git配置多个提交账户
【git神技】git别名使用
【git神技】一个本地仓库同时提交到github/gitlab/gitee等多个代码平台
gitlab使用记录
git问题汇总
git-for-windows配置
用过的jdk版本
内网穿透-通过公网ip访问本地web服务
常见问题的排查及工具
本文档使用 MrDoc 发布
-
+
首页
git问题汇总
## centos7升级git 关键字:`centos7升级git` `update git version in centos7` ### way 1 ```bash yum install expat-devel libcurl-devel perl-ExtUtils-MakeMaker package zlib zlib-devel -y yum remove git -y wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.21.3.tar.xz tar -xvf git-2.21.3.tar.xz cd git-2.21.3/ ./configure && make && make install ln ./git /usr/bin/git git --version # refer: <https://blog.csdn.net/qq_24027457/article/details/80929667> ``` ### way 2 (recommand) ```bash git --version # 查看版本 sudo yum remove -y git* # 删除所有git相关 sudo yum remove -y git # 只删除Git # 在 CentOS 7 上安装新版本 Git 最快的方法是通过 End Point 库。 sudo yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm sudo yum install -y git git --version # 查看版本 ``` ## 问题 ssh: connect to host github.com port 22 ```text ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` 解决步骤:尝试`ssh -T git@github.com`,此时应该会超时,再尝试`ssh -T git@ssh.github.com`,此时应该会成功,再`ping ssh.github.com`,得到ip地址,再将ip地址和github.com的对应保存到hosts文件中,示例 ```text 20.205.243.160 github.com ``` 参考:[GitHub 远程仓库端口从 22 改为 443,ssh connect to host github.com port 22 Connection timed outfatal Could not read from remote repository.Please make sure you have the correct access rights and the repository exists](https://javabetter.cn/git/port-22-to-443.html)
我是张三
2024年12月31日 15:21
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
eblog
Markdown文件
分享
链接
类型
密码
更新密码