Git is a widely adopted, open source distributed version control system (VCS). It’s commonly used for source code management (SCM) with sites like GitHub and popular projects such as Perl, and Ruby on Rails. It is also used to maintain VCS and SCM for the Linux kernel.
While installing git on CentOS 7 is quite popular, developers use other operating systems and need access to the same functionality. This guide walks you through how to install and configure Git on Fedora 22.
- A server running Fedora 22.
- Root-level access.
Install Git on Fedora 22
First, ensure the existing packages are up to date using the following command.
dnf -y update
Next, run the following command to install Git.
dnf -y install git
Once this completes, Git is installed and ready to use.
You can check the installed version of Git using the following command.
Configure Git on Fedora 22
To prevent any commit errors, it’s a good idea to set up your user for git. Using the --global option specifies global configuration settings. Replace testuser and email@example.com with your respective username and email address.
git config --global user.name "testuser"
git config --global user.email "firstname.lastname@example.org"
Verify the configuration changes by running the following command.
git config --list
This quick tutorial helps you install and configure Git on Fedora 22. Much more can be done but knowing the basics gets you started.
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.