In this tutorial, we will install git on linux and add git user. This tutorial can be used for installation of GIT on centos and fedora as well.
Login to your centos machine and run yum update to update the latest patches.
# yum update -y
Once your system is updated, run below command for installation of git.
yum install git
Now run below command to check the installed git version
# git --version
Once git is installed, now we will add git user with below command
#git config --global user.name vedkumar
Now we will add user email to the git account
# git config --global user.email [email protected]
We have successfully created git user. To check the git users created on the system, run below command
#git config --list
Conclusion
We have install git on linux and created a git account on centos. We have also added user and mapped email to the git user account.