Git cheatsheet

Just a page — no tracking, no cookies

Loading the table…

Source: Git documentation · verified 2026-07-25 · everyday commands, not every flag

Git cheatsheet — common workflows

A searchable quick reference for everyday Git commands — commit, branch, merge, stash and more. It runs in your browser (0 uploads, works offline).

How to use it

  1. Enter or paste your input above.
  2. The result appears live on your device.
  3. Copy or Download it.

FAQ

How do I commit (or push) in Git?

git commit -m "message" commits staged changes; git push sends them to the remote. Search any command on this page and what it does appears instantly, offline, covering the commands you use daily.

How do I create and switch to a new branch?

git checkout -b <name> creates a branch and switches to it, or git switch -c <name> with the newer command. Both are in the cheatsheet with notes.

Is anything uploaded?

No — the reference is bundled and searched on your device; it works offline.

How do I undo a commit safely?

git revert <commit> creates a new commit that undoes the change, which is safe on shared branches — unlike git reset --hard, which discards history.

Limits

Covers everyday commands, not every flag or advanced workflow. See the Git docs for the full reference.

Related

The Markdown and regex cheatsheets are companions; the other developer tools handle encoding and formatting.

Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.