git config --global user.name "Your Name"
git config --global user.email "you@example.com"Free Tool
Git Cheat Sheet
A Git cheat sheet is a quick command reference for version control tasks like cloning, branching, staging, committing, pulling, pushing, inspecting history, stashing, tagging, and undoing changes.
Search by workflow, filter by category, copy exact commands, and download a Markdown reference for onboarding docs, READMEs, and pull request checklists.
Command finder
Find the right Git command
Selected command
Check working tree status
Shows changed, staged, untracked, and conflicted files in a compact format.
git status --shortExample
git status --short
Caution
Review status before committing so unrelated local files do not slip into the change.
Command cards
Copy examples
21 matches
git initgit clone <repo-url>git status --shortgit add <path>git commit -m "Describe the change"git switch -c <branch-name>git switch <branch-name>git merge <branch-name>git fetch origingit pull --rebase origin <branch>git push -u origin <branch>git restore <path>git restore --staged <path>git revert <commit-sha>git log --oneline --decorate --graph -n 12git diffgit show <commit-sha>git stash push -m "short note"git stash popgit tag -a <version> -m "Release <version>"Share the coding work behind your commits
Code Card turns Claude Code, Codex, and OpenClaw sessions into a public profile with activity graphs, token breakdowns, badges, and shareable developer cards. Start with npx code-card.
FAQ
Git command questions
What is a Git cheat sheet?
A Git cheat sheet is a quick command reference for common version-control tasks such as cloning, branching, staging, committing, pulling, pushing, inspecting history, and undoing changes.
Which Git commands should beginners learn first?
Beginners should start with git status, git add, git commit, git pull, git push, git switch, git diff, and git log because those commands cover the daily edit-review-save-sync workflow.
What is the safest way to undo a pushed Git commit?
The safest way to undo a pushed commit is git revert because it creates a new reversing commit instead of rewriting shared branch history.
What is the difference between git fetch and git pull?
git fetch downloads remote updates for inspection, while git pull downloads updates and immediately integrates them into your current branch.
Can I copy these Git commands?
Yes. Each command card has a copy button, and the full Git command reference can be downloaded as a Markdown file.