1、 installation:
yum install git
When prompted, type y to confirm to start the installation.
2、 Verify installation: view version
git --version
You can see the version information to prove that the installation was successful.
[[ email protected]~]# git --version
git version 2.18.4[[email protected]~]#
3、 Configure user information:
git config --global user.name "Deshun"
git config --global user.email [email protected]
4、 View configuration information:
git config --list
You can see the user information, and the user indicates that the configuration is successful.
[[ email protected]~]# git config --list
user.name=Deshun
[ email protected][[email protected]~]#
Do not reprint without permission: w3h5 »CentOS 8 install Git and basic configuration
Recommended Posts