Documentation

About Git Cheat Sheet

This tool organizes common Git commands for configuration, status checks, staging, commits, branches, remotes, sync, history, bundles, archives, notes, filter-repo cleanup, bisect, repository checks, maintenance, rebase, replace refs, rerere conflict reuse, credential management, sparse checkout, tags, hooks, submodules, worktrees, stash, and rollback recovery so you can look them up and copy them quickly during development.

Key Features

  • Categorized reference: Commands are grouped into config, status, staging, commit, branch, remote, sync, history, bundle, archive, notes, filter repo, bisect, repo check, maintenance, rebase, replace, rerere, credentials, sparse checkout, tag, hooks, submodule, worktree, stash, and recovery sections.
  • One-click copy: Copy a single command or all commands currently shown by your filters.
  • Keyword filter: Search both command titles and command text to find the right action faster.
  • Risk marking: Commands such as reset, amend, and --hard are highlighted as risky.

How To Use

  1. Switch to the command category you need from the top tabs.
  2. Use the keyword filter if you want to narrow the list further.
  3. Review the command, then copy it and paste it into your terminal.
  4. Check repository status before using history-rewrite or hard reset commands.

Use Cases

  • Quick lookup while learning common Git commands.
  • Double-checking commit, push, branch, and remote commands in team workflows.
  • Temporary reference when fixing mistaken commits, tag releases, or remote sync issues.

FAQ

Does this tool run Git commands directly?

No. It only shows and copies commands. It does not access your repository or execute terminal operations.

Why are some commands marked as risky?

Because amend, reset, and --hard can rewrite history or discard changes, so they should be reviewed before use.