🔹 How to Install & Use Git on a Linux Machine

📌 Step 1: Install Git on Linux

Open a terminal and run the following commands based on your Linux distribution:

🔹 For Ubuntu/Debian →

sudo apt update -y
sudo apt install git -y

🔹 For CentOS/RHEL →

sudo yum update -y
sudo yum install git -y

🔹 For Arch Linux →

sudo pacman -S git

🔹 For Fedora →

sudo dnf install git -y

📌 Step 2: Verify Git Installation

After installation, check the installed Git version:

git --version

📌 Step 3: Configure Git

Set up your Git username and email (required for commit tracking):

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

To verify the configuration: