GitHub is an online platform where developers store, manage, track, and collaborate on code.
It uses Git, a version control system, to track every change in a project.
Think of GitHub like:
Google Drive for code
With history, teamwork, automation, and security features
2. What is Git?
Git is a version control system that:
Tracks every change in files
Stores all versions
Helps developers work together
Allows you to undo mistakes easily
Git runs on your computer.
GitHub runs on the internet.
3. GitHub Main Features (Detailed)
📌 Repositories
A "repo" is a project folder that contains:
Code files
Documentation
History of changes
Branches
📌 Commits
A "commit" is a snapshot of your project.
Example:
“Added login page”
“Fixed payment bug”
📌 Branches
Branches allow you to work separately without affecting main code.
Common branches:
, main
feature/login
bugfix/paymenterror
📌 Pull Requests (PR)
Before merging your branch into main:
Another person reviews your code
You discuss changes
Then merge
📌 Issues
Used to track:
Bugs
Tasks
Feature requests
📌 GitHub Actions
Automation feature:
Auto testing
Auto deployment
CI/CD pipelines
4. GitHub Workflow (Full Explanation)
STEP 1: Create Account
Go to github.com and sign up.
STEP 2: Install Git
Download from: git-scm.com
STEP 3: Configure Git
git config --global user.name "Your Name"
git config --global user.email ""
STEP 4: Create a Local Project
mkdir MyProject
cd MyProject