git commit: Record staged changes as a new snapshot in history. git commit records the staged changes as a new snapshot in the project's history, with a message describing what changed and why. git commit -m "Fix VAT rounding on invoices" creates a commit with that message. Good commits are small and focused on one change. That makes them easy to review, easy to revert, and useful when searching history later with git log or git bisect.
The message matters more than people think. The diff shows what changed; the message should explain why. A short first line, around fifty characters, followed by a blank line and more detail when needed, works well everywhere. "Fix bug" tells the next developer nothing. "Round VAT per line instead of per invoice" tells them what the rule was and where to look.
'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'
Use when writing commit messages, pull request titles, changelogs or status updates that use emoji (gitmoji-style) to signal the type or status of a change - e.g. ✨ new feature, 🐛 bug fix, 🔥 hotfix, 🚧 work in progress, ✅ tests, ⬆️ dependency upgrade. Also use to interpret emoji status markers in a repo or board.
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.