Installing and Configuring Git
Git Installation
1. Windows:
- Download and install Git from Git for Windows.
2. macOS:
Install Git using Homebrew:
brew install git
3. Linux:
Install Git using the package manager for your distribution:
sudo apt update && sudo apt install git # Debian/Ubuntu
sudo dnf install git # Fedora
sudo yum install git # CentOS
Verify Installation:
After installation, verify Git by running:
git --version
Configuring Git
Global Configuration:
Set your username and email globally:
git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
Check Configuration:
Verify your Git configuration:
git config --list