centos7.4 64-bit installation git

Reference blog: Linux Jenkins configuration Git

 

1. git --version Check whether git has been installed or not, then continue

2. Download address of git compressed package: https://mirrors.edge.kernel.org/pub/software/scm/git/

2. It can be downloaded to the server by direct pull: wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.17.4.tar.gz

It can also be downloaded directly to the local and then uploaded to the server, directly click https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.17.4.tar.gz

3. Installation environment: yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc

yum install gcc perl-ExtUtils-MakeMaker

4. Unzip: tar -zxvf git-2.17.4.tar.gz 

5. Enter the unzipped directory: cd git-2.17.4

6. Implementation:

make prefix=/usr/local/softwares/git all

make prefix=/usr/local/softwares/git install

7. Add environment variables

(1)  vim /etc/profile

(2) Add the git installation path: / usr / local / softwares / git

 

 (3) esc->: wq exit

8. Make the environment variable configuration take effect: source / etc / profile

9. Check the git version: git --version

 

Guess you like

Origin www.cnblogs.com/wtx106/p/12705966.html