🖨 Print / Save PDF
← Lesson
BitWith
Bite
Full-Stack · Quick Reference
Lesson 29 — Git & GitHub
Cheat Sheet
Full-Stack
In one line:
Git tracks code history locally; GitHub hosts it remotely so deployment platforms can pull your latest commit automatically.
Core Commands
git init
Start tracking a repo
git add .
Stage all changes
git commit -m "msg"
Save a snapshot
git push
Upload to remote
git checkout -b name
New branch
First Push
git init git add . git commit -m "Initial commit" git branch -M main git remote add origin <url> git push -u origin main