git commit

Record staged changes

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Creates a commit from the index. See the flags and examples below, and run `man git` for the full reference.

Common flags
FlagMeaning
-mMessage
--amend --amendRewrite the last commit⚠ Changes history; don’t amend pushed commits.
-aStage tracked changes automatically
--no-verify --no-verifySkip hooks⚠ Bypasses safety checks.
Examples
git commit -m "Fix login redirect"Commit · explain & risk-check →
git commit --amend --no-editAdd to the last commit · explain & risk-check →
Related
git add git push
Open the full explainer →More in Git

Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.