Git, Server & Deployment
Git Command Explainer
Paste a git command to see what it actually does — the subcommand, every flag, the targets it acts on, and any risky effects. Everything runs in your browser; your command never leaves the page.
Git command
paste & explain
Paste a command starting with git. Quoting, escapes and
\ line continuations are understood, and the explanation updates as you type.
Explanation
waiting for a commandHow it works
The command is split into shell-style tokens — respecting single quotes, double
quotes, backslash escapes and line continuations — then the subcommand is matched
against a table that covers the common git commands and their flags. Options are
explained in the context of the subcommand, so the same letter can mean different
things: -a stages everything for git add, while for
git commit it means --all. Targets are labelled as remotes,
refs, commits or paths, and risky flags such as --force,
reset --hard and clean -f are called out. Anything the
explainer does not recognise is reported instead of guessed at, and the whole command
is processed locally.