Git Command Cheat Sheet

A searchable list of 21 everyday Git commands with explanations. Filter by command name or by keyword, and click any entry to copy it to your clipboard.

FreeOnline Tool
Loading…

How to Use

  1. The page opens with the full list of common Git commands and their explanations.
  2. Type a keyword into the search box, such as stash or push, or a keyword from the description, such as branch or reset, to filter the list as you type.
  3. Click any command to copy it to your clipboard; a brief "Copied" confirmation appears.

Features

  • 21 built-in commands covering initialization, committing, branching, merging, stashing, resetting, and tagging.
  • Every command comes with a short explanation of what it does.
  • Live search filters by command name (case-insensitive) or by words in the explanation.
  • One click copies the command to your clipboard, with no text selection needed.

Use Cases

Looking up a command mid-task
When the exact syntax of a Git command slips your mind, search a keyword, find it, and copy it without leaving your workflow.
Learning Git as a beginner
Browse the full list with explanations to build a picture of the commands you will actually use day to day.
Teaching and demos
Use the cheat sheet alongside a live walkthrough when explaining a Git workflow so your audience can follow each step.
Handling merges and stashes
When you hit a merge, stash, or reset situation, search for the relevant command and copy it right away.

FAQ

What exactly gets copied when I click a command?
Clicking an entry copies the command itself, for example git commit -m, to your system clipboard so you can paste it straight into a terminal.
What can I search by?
You can search the command text itself, such as push or stash, case-insensitively, and you can also search the wording of the explanation. A match on either one is enough.
Which categories does the list cover?
The 21 commands span repository init and clone, staging and committing, creating, switching and merging branches, pushing and pulling, viewing and undoing history, tags, and cherry-pick.
Does copying work in every browser?
Copying relies on the browser clipboard API (navigator.clipboard), which all current versions of Chrome, Edge, Firefox and Safari support. Very old browsers or non-HTTPS pages may not.