Quick Guide: Git Setup on RHEL 9 via dnf
This quick guide outlines the steps to install and configure Git on Red Hat Enterprise Linux (RHEL) 9 using the dnf
package manager.
- Open a Terminal: Access the command line interface.
-
Install Git: Use
dnf
to install the Git package:sudo dnf install git
-
Verify Installation: Check the Git version to confirm successful installation:
git --version
-
Configure User Details (Optional but Recommended): Set your name and email address for commit attribution:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
You now have Git installed and configured on your RHEL 9 system. You are ready to start using Git for version control.