What You Actually Install
You don’t install GitHub itself—you install:
- Git (t**l to manage code)
- Then connect it to your GitHub account
🔹 Step 1: Install Git
For Windows
- Go to the official Git website:
👉 https://git-scm.com - Download Git for Windows
- Run the installer
- Click Next → Next → Install (default settings are fine)
For macOS
- Install using Homebrew:
brew install git
OR download from Git website
For Linux
sudo apt update
sudo apt install git
🔹 Step 2: Verify Installation
Open terminal / command prompt:
git --version
🔹 Step 3: Configure Git
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
🔹 Step 4: Create GitHub Account
- Go to https://github.com
- Sign up with email
- Verify your account
🔹 Step 5: Connect Git to GitHub
Option 1: HTTPS (Simple)
- Use username & password/token when pushing code
Option 2: SSH (Recommended)
Generate SSH key:
ssh-keygen -t ed25519 -C "your@email.com"
Add key to GitHub:
- Go to GitHub → Settings → SSH Keys
- Paste the public key
🔹 Step 6: Clone a Repository
git clone https://github.com/username/repository.git
🔹 Optional: GitHub Desktop
You can install GUI version:
- GitHub Desktop
- Easier for beginners
🔹 Basic Commands
git init
git add .
git commit -m "First commit"
git push
✅ Conclusion
Installing Git and connecting it to GitHub allows you to manage code, track changes, and collaborate efficiently.
