1. Introduction Git is a free, open source distributed version control system used to handle any project, small or large, in an agile and efficient manner. Git is an open source distributed version control system that is used to efficiently and quickly manage versions of projects ranging from very small to very large. Git is an open source version control software developed by Linus Torvalds to help manage Linux kernel development Installation Environment Alibaba Cloud ECS CentOS 7.4 64-bit 2. Install git using shell Please save the downloaded shell and the following code to the same directory cnl_function.sh #!/bin/bash source ./cnl_function.sh #function of installing git install_git(){ #download the compressed package cd /usr/local/src #if compressed package is empty then download [ -f git-2.2.1.tar.gz ] || wget https://www.kernel.org/pub/software/scm/git/git-2.2.1.tar.gz check_ok tar -zxf git-2.2.1.tar.gz check_ok [ -d /usr/local/git ] && mv /usr/local/git /usr/local/git_`date +%s` cd git-2.2.1 check_ok for p in expat-devel do myum $p done make prefix=/usr/local/git all make prefix=/usr/local/git install check_ok if ! grep '^git:' /etc/group then groupadd git fi if ! grep '^git:' /etc/passwd then useradd -m git -s /usr/local/git/bin/git-shell -g git fi check_ok ln -s /usr/local/git/bin/git /usr/local/bin/git echo "git is installed finish." } read -p "Enter (Y) to start installation git:" n if [ $n == 'Y' ] then echo "Start installation==========================================================================================================================================================>" install_git else echo "Cancel the installation." fi As shown below, I saved the above code to cnl_install_git.sh Execute the script and follow the prompts to enter Command line execution git --version The installation is complete. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: A complete guide on how to query and delete duplicate records in MySQL
>>: A brief analysis of the configuration items of the Angular CLI release path
Similar structures: Copy code The code is as foll...
1. Update the entire table. If the value of a col...
1. Software Download MySQL download and installat...
Table of contents Stabilization Introduction Anti...
This article example shares the specific code of ...
This article example shares the specific code of ...
Table of contents 1. CentOS7+MySQL8.0, yum source...
Table of contents Preface 1. GMT What is GMT Hist...
First download the zip archive version from the o...
Search Page: search.wxml page: <view class=&qu...
1 Introduction After "Maven deploys Springbo...
KILL [CONNECTION | QUERY] processlist_id In MySQL...
A joint index is also called a composite index. F...
Install linux7.2 Internet access configuration on...
I wonder if you are like me, a programmer who arr...