Git is a powerful version control system essential for developers. Here's how to install it on different platforms:
🐧 Linux
Use your package manager:
sudo apt update && sudo apt install git # Debian/Ubuntu
sudo yum install git # Red Hat/CentOS
🍎 macOS
Install via Homebrew or download from git-scm.com:
brew install git
🪄 Windows
Download the Git Installer and follow the prompts:
# Or use Chocolatey
choco install git
✅ Verify Installation
Open terminal and run:
git --version
You'll see output like git version 2.xx.x.windows.1
For advanced usage, check our Git Documentation Center 📚