Git · DEVELOPER GUIDE

Git Cheat Sheet: Everyday Commands

A quick reference for status, commits, branches, merges and inspecting Git history.

A handful of Git commands cover most daily development needs. Understand what each command changes before using destructive options.

Review working changes

git status shows files and staging state, while git diff displays changes that have not yet been staged.

Save intentional commits

Use git add to stage the exact changes you intend to include, then git commit with a useful descriptive message.

Branch without losing work

Create short-lived branches for changes. Review pull requests before merging and avoid force operations on shared branches.

Try an example yourself

Explore a related developer utility and apply what you learned.

Open related tool ↗