Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 1012 Bytes

File metadata and controls

98 lines (67 loc) · 1012 Bytes

🟢 Git Beginner Cheat Sheet

“Focus on the core workflow — nothing more.”


🧠 Git Basic Flow

flowchart LR
    A[Edit Files] --> B[git add]
    B --> C[git commit]
    C --> D[git push]
Loading

⚙️ Core Commands (Must Know)

git init
git clone <url>

git status
git add .
git commit -m "message"

git log --oneline

🌿 Basic Branching

git branch
git switch -c feature
git switch main
git merge feature

🌍 Remote

git push
git pull

🧠 Key Concepts

Repository = project
Commit = snapshot
Branch = pointer

⚡ Daily Workflow

git status
git add .
git commit -m "message"
git pull
git push

⚠️ Beginner Mistakes

❌ skipping git status
❌ committing everything blindly
❌ working on main branch

🧠 Golden Rule

Always check → git status

🏁 Outcome

You can track and save changes safely