Linux install Git environment

Linux install Git environment

Linux install Git environment

1. Create a new download directory mkdir /data/soft/phpsoft/git
2. Download git wget https://github.com/git/git/archive/v2.22.0.tar.gz
3. Unzip tar v2.22.0.tar. gz
3. Installation dependencies yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
4. Enter the directory cd git-2.22.0
5. Compile make prefix=/data/install/git all
6. Install make prefix=/data/install/git install
7. Modify the environment variable vim /etc/profile to increase PATH=$PATH:/data/install/git/bin
8. Refresh the configuration source /etc/profile
9. View Version git --version

Guess you like

Origin blog.csdn.net/wyy131452050/article/details/114267742