Git

Git Commands Cheat Sheet

Essential commands for repository setup, staging, commits, branches, stashing, and remote syncing.

Basic Workflow

Stage changes
git add .
Create commit
git commit -m "feat: implement responsive header"
Push to remote
git push origin main

Branching & Merging

Create & switch branch
git checkout -b feature/auth
Rebase main onto feature
git rebase main