采用版本是2.30.0

 

下载解压编译:

 

编译报错:

http.h:6:10: fatal error: curl/curl.h: No such file or directory
#include <curl/curl.h>

yum -y install curl-devel

 

http-push.c:22:10: fatal error: expat.h: No such file or directory
#include <expat.h>

yum install expat-devel

https://blog.csdn.net/weixin_41910427/article/details/82733265

P.s.  我是采用rpm包下载的方案:

https://centos.pkgs.org/7/centos-x86_64/expat-devel-2.1.0-12.el7.x86_64.rpm.html

 

git-compat-util.h:301:25: fatal error: openssl/ssl.h: No such file or directory

sudo yum install openssl-devel

安装Openssl开发包

 

生成执行程序:

sudo make prefix=/usr/local/git install

 

修改 /etc/profile 配置

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

 


 

Git常用命令记录:

更新远端分支列表:

 

本地分支去掉远端分支绑定

 

回退版本:

 

添加远端分支

 

开发合并基本操作:

 

Git记住凭据

 

 

 

【Git】升级最新版本 && git 常用命令记录
Tagged on:
4.5 2 投票数
Article Rating
订阅评论
提醒

0 评论
内联反馈
查看所有评论