git客户端安装问题

问题回顾:

做git客户端版本升级,安装好之后提示git:'remote-https' 不是一个 git 命令。参见 'git --help'。

问题处理:

缺少第二步依赖下载

安装步骤:

1、删除安装git

yum remove git

2、安装依赖

yum install libcurl-devel && yum install curl-devel

3、下载新git安装文件

wget --no-check-certificate https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.41.0.tar.xz

4、解压编译

tar -xvf git-2.41.0.tar.xz && ./configure --prefix=/usr/local/git && make && make install

5、配置全局环境

vim /etc/profile

写入export PATH=$PATH:/usr/local/git/bin

source /etc/profile

6、查看版本git -v

相关推荐
午安~婉14 小时前
Git中SSH连接
前端·git·gitee
888CC++15 小时前
VS Code Git 工作树:解锁多分支并行开发新体验
git
阿虎儿15 小时前
Git exclude 功能解析
git
隔窗听雨眠16 小时前
VS Code Git工作树:多分支并行开发的完整实践方案
git
^yi17 小时前
【Linux系统编程】快速上手git仓库管理,核心三板斧
git
郝同学今天有进步吗18 小时前
构建 LangGraph Code Review Agent(四):文件过滤与 AnalysisPackage 分包
git·python·ai·code review
胖大和尚1 天前
git本地实现local->remote推送
git
BerryS3N1 天前
Code Git 工作树:多分支开发的痛点与工作树的曙光
大数据·git·elasticsearch
lbb 小魔仙2 天前
Git + Python 项目工作流最佳实践:pre-commit、CI、CHANGELOG 自动化
git·python·ci/cd
Xu_youyaxianshen2 天前
Git 零基础常用指令手册(Gitee / GitHub 通用 )
git·gitee·github