git commit

Practice git commit from memory. -m supplies the message inline; conventional prefixes (feat:, fix:, chore:) drive changelogs and semver tooling. Omit -m

Record staged changes as a commit with a conventional message.

git commit -m "type: message"

-m supplies the message inline; conventional prefixes (feat:, fix:, chore:) drive changelogs and semver tooling. Omit -m to open EDITOR for a longer body.

Safety: Inspect first and avoid rewriting shared history unless the team expects it.

Build the habit: GitDrill drills git commit and the rest of the Git workflow until the safe first move is automatic. Try a Git drill.