Git is a popular software version-control system. Git is used to track changes to your code and to manage it. Thousands of web developers use Git to get data speed and integrity for their projects.
In order to install Git on CentOS we recommend you to follow the steps described below:
- Log in as root or sudo user
- Create a new file wandisco-git.repo in /etc/yum.repos.d/ by running the command:
sudo vi /etc/yum.repos.d/wandisco-git.repo
- Add the following lines in wandisco-git.repo
[wandisco-git]
name=Wandisco GIT Repository
baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
Import the GPG Repository Key by executing the command:
sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
Run the following command to install the latest Git version:
sudo yum install git
Check the Git version by executing the command:
git --version
The above command should provide an Output with the latest Git version.
After installing Git, we can add personal information using git-config
git config --global user.name "Numele dvs."
git config --global user.email "[email protected]"
Run the following command to verify your details:
git config --global user.email "[email protected]"
Installation and configuration of the latest version of Git on CentOS is now complete.
For assistance in applying the above instructions on the virtual and dedicated servers offered by HostX please contact us. HostX offers fast dedicated servers with the latest technologies and can assist you in solving your problems.