⚡ Search by intent · Copy-paste commands · Plain English

Git Command Reference

Find the right git command by describing what you want to do — not by memorizing command names.

🌱

Basics

Init, clone, commit, push, pull

🌿

Branching

Create, merge, rebase, switch

↩️

Undoing

Reset, revert, discard changes

🌐

Remote

Fetch, push, remotes, tracking

📦

Stashing

Save, apply, list, drop stashes

🔍

History

Log, diff, blame, search

🏷️

Tags

Create, push, delete tags

Advanced

Cherry-pick, bisect, worktrees

About This Reference

Most git references are organized by command name. This one is organized by what you are trying to do. Whether you want to undo a commit, rename a branch, squash commits before a pull request, or find which commit introduced a bug — search by intent and get the right command with a plain English explanation.

Each entry shows multiple options where relevant — for example, undoing a commit has three variants depending on whether you want to keep changes staged, keep them unstaged, or discard them entirely. Dangerous commands are clearly marked with warnings.