Loading

Git Install

Git Install

[root@localhost software]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.43.0.tar.gz
[root@localhost  software]#
[root@localhost  software]# tar -zxf git-2.43.0.tar.gz
[root@localhost  software]# cd git-2.43.0/
[root@localhost  git-2.43.0]#
[root@localhost  git-2.43.0]# ./configure --prefix=/usr/local/git
[root@localhost  git-2.43.0]# 
[root@localhost  git-2.43.0]# make -j4
[root@localhost  git-2.43.0]# make install
[root@localhost  git-2.43.0]# 
[root@localhost  git-2.43.0]# ln -s /usr/local/git/bin/git /usr/local/bin/
[root@localhost  git-2.43.0]#
[root@localhost  git-2.43.0]# git --version
git version 2.43.0
[root@localhost  git-2.43.0]#

posted @ 2024-02-23 09:02  zhpj  阅读(34)  评论(0)    收藏  举报