GitHub Complete Guide 🌐

Portfolio + Collaboration + Cloud Code Hosting

1. What is GitHub?

GitHub is a cloud platform where developers store, share, and collaborate on Git repositories.

2. Git vs GitHub

Git → Local version control (on your system)
GitHub → Online hosting for Git repositories

3. Setup Account

1. Go to github.com
2. Create account
3. Verify email
4. Create repository

4. Create Repository

Repository = Project folder in cloud

Steps:
- Click "New Repo"
- Add name
- Choose public/private
- Create repo

5. Push Code

git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/user/repo.git
git push -u origin main

6. Clone Repo

git clone https://github.com/user/repo.git

7. Branching

git branch feature
git checkout feature
git push origin feature

8. Pull Request (PR)

PR = Request to merge code into main branch

Steps:
- Push branch
- Open GitHub
- Click "Compare & Pull Request"

9. Issues

Used for:
- Bug tracking
- Feature requests
- Task management

10. GitHub Profile

Your GitHub profile = Developer Resume

Must include:
- Projects
- README
- Pinned repos

11. README.md

# Project Title
Description
Tech Stack
How to run

12. Pro Tips