- Home
- Course Detail
regularpython@gmail.com
You are now watching:
Git Tools Setup and Explanation / of Git and GitHub Installation
๐ Git & GitHub Setup from Scratch
โ Step 1: Create a GitHub Account
- Visit https://github.com
- Click on Sign up
- Enter your email, password, and username
- Verify your email and complete account setup
- Select the Free Plan (recommended)
๐ฅ๏ธ Step 2: Check if Git is Installed
Open your terminal or command prompt and run:
git --version
If Git is installed: You’ll see something like:
git version 2.42.0
If Git is NOT installed: You’ll see an error.
๐ง Step 3: Download and Install Git
- Visit: git-scm.com/downloads
- Download based on your OS (Windows, macOS, or Linux)
Windows Installation:
- Run the installer (.exe)
- Choose default options (recommended)
- Accept default editor (e.g., VS Code)
- Click Install → Finish
โ๏ธ Step 4: Configure Git
Run the following commands in terminal:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
โ This sets your identity for commits.
๐ Step 5: Generate SSH Key
ssh-keygen -t ed25519 -C "your.email@example.com"
- Press Enter to accept default path
- Enter passphrase (optional)
Then run:
cat ~/.ssh/id_ed25519.pub
๐ Copy the output and add it to:
- GitHub → Settings → SSH and GPG keys → New SSH key
๐ Step 6: Clone Repository
Go to your GitHub repo and copy the SSH link, then run:
git clone git@github.com:your-username/your-repo.git
๐งช Step 7: Test SSH Connection
ssh -T git@github.com
Expected Output:
Hi your-username! You've successfully authenticated,
but GitHub does not provide shell access.