In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Introduction
Git is a free, open source distributed version control system for agile and efficient handling of any project, small or large.
Git is an open source distributed version control system for efficient and high-speed version management 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
Aliyun ECS CentOS 7.4 64 bit
2. Use shell to install git
Please save the downloaded shell to the same directory as the following code
Cnl_function.sh
#! / bin/bashsource. / cnl_function.sh#function of installing gitinstall_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`date $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:" nif [$n = ='Y'] then echo "Start installation= >" install_gitelse echo "Cancel the installation." fi
As shown in the following figure, I will save the bit cnl_install_git.sh in the above code
Execute the script and follow the prompts to enter
Command line execution
Git-version
The installation is complete.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.