Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

Interactive Git Cheatsheet

Search 50 real Git commands by name or description, filter by category, and copy any command with one click. Commands with [...] need your own values, for example a file name.

Category

How to use this cheatsheet

  1. Type in the search box or pick a category pill to narrow the list.
  2. Click the Copy button on any command to copy it to your clipboard.
  3. Paste it into your terminal. Replace anything in [...] brackets with your own values first.

Tip: run git help [command] in your terminal for the full documentation of any command.

Frequently Asked Questions (FAQ)

How many Git commands are in this cheatsheet?

The cheatsheet includes 50 real Git commands, each with a plain-English explanation of what it does.

How do I find a specific command?

Type a keyword like undo, branch, or stash in the search box, or pick a category pill such as Setup, Remote and Sync, or Undo and Fix to narrow the list.

What do the [...] brackets in a command mean?

Brackets mark values you must supply yourself, such as a file name or branch name. Replace anything in [...] with your own value before pasting the command into your terminal.

How do I copy a command?

Click the Copy button on any command card to copy it to your clipboard, then paste it into your terminal.

Where can I read the full documentation for a command?

Run git help followed by the command name in your terminal, for example git help commit, to open the full built-in documentation.