# Generate commit messages with Copilot

Category: GitHub Copilot

# Generate commit messages with Copilot

Ask Copilot Chat to write a commit message from a diff

Run `git diff --staged` in the terminal, copy the output, and paste into Chat with 'write a conventional commit message for this diff'. Copilot follows the conventional commits format (feat/fix/refactor/chore) and summarizes the changes accurately.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.