git switch main
git pull
git switch -c improve-headerGit Cheatsheet
Use this Git cheatsheet when you need the right command quickly: status checks, staging, commits, branches, remotes, safe undo workflows and everyday version-control examples.
Quick reference
Everyday commands
git statusSee changed, staged and untracked files.
git add .Stage all current changes.
git commit -m "Message"Save staged changes with a short message.
git log --oneline --graphCompact branch history.
Branches and remotes
git switch -c feature-namegit switch maingit pullgit push -u origin feature-nameUndo safely
git restore --staged file.tsgit restore file.tsgit commit --amendgit revert <commit>Examples
git status
git add src/components/Header.tsx
git commit -m "Improve header navigation"Git FAQ
What is included in the Git cheatsheet?
Git Cheatsheet includes quick reference sections, practical examples, common mistakes, tips and links to related DevKitYard tools.
Is the Git cheatsheet interactive?
This cheatsheet is a static quick reference focused on concise commands, syntax and examples.
When should I use this Git reference?
Use it when you need to recall syntax, compare common patterns or avoid mistakes without opening a long tutorial.
What should I use after reading this cheatsheet?
Use related DevKitYard tools such as Gitignore Generator, Text Diff Checker when you need to format, validate, generate or inspect real output.