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

相关推荐
C++ 老炮儿的技术栈4 小时前
在C++ 程序中调用被 C编译器编译后的函数,为什么要加 extern “C”声明?
c语言·c++·windows·git·vscode·visual studio
Robin罗兵6 小时前
git使用教程2
git
bob_young9 小时前
Git LFS + Gerrit 配置+lfs-test-server(git lfs push总是提示输入https密码解决)
git·lfs
半夏微凉半夏殇12 小时前
git add . 是否会包含.o、.so、.ko文件?深度解析与避坑指南
git
牟同學12 小时前
Git 实战场景操作大全(可直接落地)
git
不做无法实现的梦~13 小时前
使用ros2跑mid360的fastlio2建图
git·单片机·嵌入式硬件·gitcode
长沙红胖子Qt15 小时前
SVN培训笔记(二):使用sourceTree通过git桥接管理svn项目
git·svn·sourcetree·sourcetree管理svn
半夏微凉半夏殇17 小时前
从多仓库到单仓库:如何高效迁移并统一管理多个Git项目
git
__万波__17 小时前
解决警告“..LF will be replaced by CRLF the next time Git touches it“
git
Software攻城狮17 小时前
git报错处理
git