How to Install Git: Step-by-Step Guide
1. For Windows:
Visit the Git website and download the Git installer for Windows.
Run the installer, follow the prompts, and customize settings (e.g., editor, PATH environment).
Verify installation: open Command Prompt or Git Bash and type git --version.
2. For macOS:
Install via Homebrew:
brew install git
Or, download the Git installer from the official website.
Verify using:
git --version
3. For Linux:
Use the package manager:
Debian/Ubuntu:
sudo apt update
sudo apt install git
Fedora:
sudo dnf install git
Confirm installation:
git --version
Post-Installation:
Configure Git:
git config --global user.name "Your Name"
git confi
g --global user.email "your.email@example.com"
1. For Windows:
Visit the Git website and download the Git installer for Windows.
Run the installer, follow the prompts, and customize settings (e.g., editor, PATH environment).
Verify installation: open Command Prompt or Git Bash and type git --version.
2. For macOS:
Install via Homebrew:
brew install git
Or, download the Git installer from the official website.
Verify using:
git --version
3. For Linux:
Use the package manager:
Debian/Ubuntu:
sudo apt update
sudo apt install git
Fedora:
sudo dnf install git
Confirm installation:
git --version
Post-Installation:
Configure Git:
git config --global user.name "Your Name"
git confi
g --global user.email "your.email@example.com"